I\'m going through Google\'s Python exercises and I need to be able to do this from the command line:
python babynames.py --summaryfile baby*.html
Using argparse:
import argparse parser=argparse.ArgumentParser() parser.add_argument(dest='wildcard',nargs='+') print(parser.parse_args().wildcard)