Created
March 16, 2017 16:23
-
-
Save thorsummoner/44334c42794936693195d8dc5c0cb86d 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
#!/usr/bin/env python3 | |
""" Example argparser based python file | |
""" | |
import argparse | |
ARGP = argparse.ArgumentParser( | |
description=__doc__, | |
formatter_class=argparse.RawTextHelpFormatter, | |
) | |
ARGP.add_argument('--debug', action='store_true', help='Dump arguments') | |
def main(argp=None): | |
if argp is None: | |
argp = ARGP.parse_args() | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment