File: quick_example.py

package info (click to toggle)
docopt 0.6.2-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 324 kB
  • sloc: python: 1,042; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
"""Usage:
  quick_example.py tcp <host> <port> [--timeout=<seconds>]
  quick_example.py serial <port> [--baud=9600] [--timeout=<seconds>]
  quick_example.py -h | --help | --version

"""
from docopt import docopt


if __name__ == '__main__':
    arguments = docopt(__doc__, version='0.1.1rc')
    print(arguments)