# argparse section import argparse parser = argparse.ArgumentParser() parser.add_argument("--email", help="send to specific email") parser.add_argument("--console", action="store_true", default=False, help="push results to stdout") # grab the options here from the command line, console overrides email args = parser.parse_args()