Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Diederich andrewdied

  • Parker, CO
View GitHub Profile
@andrewdied
andrewdied / args_example.py
Last active Jun 27, 2017
python3 argparse example with importable default settings
View args_example.py
#!/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:
You can’t perform that action at this time.