mirror of
https://github.com/kennethreitz/bob-builder-1.git
synced 2026-06-05 23:10:17 +00:00
30 lines
612 B
Python
30 lines
612 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""Usage: bob [-vqrh] [FILE] ...
|
|
bob (--left | --right) CORRECTION FILE
|
|
|
|
Process FILE and optionally apply correction to either left-hand side or
|
|
right-hand side.
|
|
|
|
Arguments:
|
|
FILE optional input file
|
|
CORRECTION correction angle, needs FILE, --left or --right to be present
|
|
|
|
Options:
|
|
-h --help
|
|
-v verbose mode
|
|
-q quiet mode
|
|
-r make report
|
|
--left use left-hand side
|
|
--right use right-hand side
|
|
|
|
"""
|
|
from docopt import docopt
|
|
|
|
|
|
def dispatch():
|
|
print 'welcome to bob!'
|
|
print
|
|
arguments = docopt(__doc__)
|
|
print(arguments)
|