Debian Codegraph @

examples/arguments_example.py

raw
1 """Usage: arguments_example.py [-vqrh] [FILE] ...
2 arguments_example.py (--left | --right) CORRECTION FILE
3
4 Process FILE and optionally apply correction to either left-hand side or
5 right-hand side.
6
7 Arguments:
8 FILE optional input file
9 CORRECTION correction angle, needs FILE, --left or --right to be present
10
11 Options:
12 -h --help
13 -v verbose mode
14 -q quiet mode
15 -r make report
16 --left use left-hand side
17 --right use right-hand side
18
19 """
20 from docopt import docopt
21
22
23 if __name__ == '__main__':
24 arguments = docopt(__doc__)
25 print(arguments)