Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Challenge: Implement CLI interface like that?. Parent comment
Take an example:
Usage: quick_example.py tcp <host> <port> [--timeout=<seconds>] quick_example.py serial <port> [--baud=9600] [--timeout=<seconds>] quick_example.py -h | --help | --version
Take a look at more examples: https://github.com/docopt/docopt/tree/master/examples
There are no comments on this comment yet.
Take an example:
2 commands, 3 arguments, 5 options: in only 3 lines of DSL.Take a look at more examples: https://github.com/docopt/docopt/tree/master/examples