Skip to content

Instantly share code, notes, and snippets.

@kmanalo
Created November 12, 2014 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kmanalo/e46b13f9f7715548851c to your computer and use it in GitHub Desktop.
Save kmanalo/e46b13f9f7715548851c to your computer and use it in GitHub Desktop.
# 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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment