-
-
Save s-boardman/efe57366f8bd040e3c39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# argparse section | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-l","--list", help="pass a list", nargs="*") | |
parser.add_argument("-b","--boolean", action="store_true", default=False, help="use this flag to turn on an option") | |
# grab the options here from the command line, console overrides email | |
args = parser.parse_args() | |
list = args.list | |
if args.boolean is True: | |
boolean = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment