Skip to content

Instantly share code, notes, and snippets.

@thorsummoner
Created March 16, 2017 16:23
Show Gist options
  • Save thorsummoner/44334c42794936693195d8dc5c0cb86d to your computer and use it in GitHub Desktop.
Save thorsummoner/44334c42794936693195d8dc5c0cb86d to your computer and use it in GitHub Desktop.
#!/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