Skip to content

Instantly share code, notes, and snippets.

View andrewdied's full-sized avatar

Andrew Diederich andrewdied

View GitHub Profile
@andrewdied
andrewdied / args_example.py
Last active June 27, 2017 19:56
python3 argparse example with importable default settings
#!/usr/bin/python3
'''
> python3 args_example.py -h
usage: args_example.py [-h] [-f FIRST_OPTION] [-s SECOND_OPTION]
[-t THIRD_OPTION]
mandatory_argument
Example argument parser with default values.
positional arguments: