This is the example from docopt.org:
Naval Fate.
Usage:
naval_fate ship new <name>...
naval_fate ship <name> move <x> <y> [--speed=<kn>]
naval_fate ship shoot <x> <y>
naval_fate mine (set|remove) <x> <y> [--moored|--drifting]
naval_fate -h | --help
naval_fate --version
Options:
-h --help Show this screen.
--version Show version.
--speed=<kn> Speed in knots [default: 10].
--moored Moored (anchored) mine.
--drifting Drifting mine.
I see that options can have a long explanation in the Options:
section. For example, it's very clear that naval_fate --version
is to Show version
.
However, is there a way to provide an extended explanation for commands or positional arguments? For example, how does the user know what naval_fate ship shoot <x> <y>
does?