Skip to content

Instantly share code, notes, and snippets.

Avatar

Carlos Borroto CarlosBorroto

View GitHub Profile
@CarlosBorroto
CarlosBorroto / example.py
Created Jun 19, 2013
Example python script with proper input exception handling and docopt argument handling.
View example.py
#!/usr/bin/env python
"""Example python script with proper input exception handling and docopt
argument handling.
If no <input_file> is provided this script will use sys.stdin instead.
usage: example.py [<input_file>...]
options:
-h --help Show this screen
You can’t perform that action at this time.