import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--date', help='date of event', type=str)
parser.add_argument('-t', '--time', help='time of event', type=str)
args = parser.parse_args()
print(f'Event was on {args.date} at {args.time}')
import sys
print(sys.argv)
#!/usr/bin/python
import sys
print('Number of arguments:', len(sys.argv), 'arguments.')
print('Argument List:', str(sys.argv))
import sys
print ("the script has the name %s" % (sys.argv[0])