#!/usr/bin/python
import getopt, sys
'''
Find out more about me
'''
def main():
opts, args = getopt.getopt(sys.argv[1:], "antclem",
["me", "name", "trade", "contact", "links", "experience", "misc"])
if ('--me','') in opts or ('-a','') in opts:
opts = zip(['-n', '-t', '-e', '-c', '-l', '-m'], [''] * 7)
elif (len(opts) < 1):
usage()
try:
for opt, arg in opts:
if opt in ("-n", "--name"):
print "Andrea Fey"
elif opt in ("-t", "--trade"):
print "Software Engineer"
elif opt in ("-c", "--contact"):
print "andrea · web at mailnull · com || 828 423 0331"
# experience in years
elif opt in ("-e", "--experience"):
print { 'Java': 8.0, 'Scala': 0.5, 'SQL': 7.5, 'Python': 2.0 }
elif opt in ("-l", "--links"):
print "www.andreafey.com || github.com/andreafey || @rhymespi || linkedin.com/andreafey314159"
elif opt in ("-m", "--misc"):
print unicode(u"rhymes with \u03C0")
except Exception:
usage()
def usage():
print '''Usage:
contact --me Find out more about me
'''
if __name__ == "__main__":
sys.exit(main())