from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument('--name', help='Your full name', required=True)
parser.add_argument('--age', help='Your age in years', type=int)
parser.add_argument('--birthday', help='Your birth month and year (e.g. Apr 7)')
arguments = parser.parse_args()
print ("Hello {}".format(arguments.name))
if arguments.age:
print ('You are {} years old'.format(arguments.age))
if arguments.birthday:
print ('You will be {} next {}'.format(arguments.age+1, arguments.birthday))
else:
print ('You will be {} on your next birthday'.format(arguments.age+1))