Skip to content

Instantly share code, notes, and snippets.

@damondouglas
Last active August 29, 2015 14:23
Show Gist options
  • Save damondouglas/d0c843d62bbc80b7b556 to your computer and use it in GitHub Desktop.
Save damondouglas/d0c843d62bbc80b7b556 to your computer and use it in GitHub Desktop.
"""Usage:
build.py find <regexp> <path>
build.py -h | --help | --version
"""
from docopt import docopt
def find(arguments):
print(arguments)
if __name__ == '__main__':
arguments = docopt(__doc__, version='0.1.1rc')
command = [x for x in arguments if arguments[x] == True]
if len(command) > 0 and command[0] in locals():
locals()[command[0]](arguments)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment