Created
March 22, 2018 08:28
-
-
Save bayerj/a4bb8124c83352982619182379eee1b1 to your computer and use it in GitHub Desktop.
Skeleton for command line scripts using docopt.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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