Skip to content

Instantly share code, notes, and snippets.

@bayerj
Created March 22, 2018 08:28
Show Gist options
  • Save bayerj/a4bb8124c83352982619182379eee1b1 to your computer and use it in GitHub Desktop.
Save bayerj/a4bb8124c83352982619182379eee1b1 to your computer and use it in GitHub Desktop.
Skeleton for command line scripts using docopt.
"""
Usage:
run something somewhere
Options:
-h | --help Show this screen.
"""
import sys
import docopt
def validate(args):
pass
def main(args):
return 0
if __name__ == '__main__':
args = docopt.docopt(__doc__)
validate(args)
sys.exit(main(args))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment