We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given the following example.docopt:
example.docopt
Naval Fate. Usage: naval_fate.py ship create <name>... naval_fate.py ship <name> move <x> <y> [--speed=<kn>] naval_fate.py ship shoot <x> <y> naval_fate.py mine (set|remove) <x> <y> [--moored|--drifting] naval_fate.py --help naval_fate.py --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'd expect --speed to equal 10 if no options are passed, however I see this instead:
--speed
$ ./example.out Commands mine == false move == false create == false remove == false set == false ship == false shoot == false Arguments x == (null) y == (null) Flags --drifting == false --help == false --moored == false --version == false Options --speed == (null)
The text was updated successfully, but these errors were encountered:
Merge pull request #27 from tjeezy/fix_default_options
7d85dc4
fixes default option value (closes issue #26)
No branches or pull requests
Given the following
example.docopt
:I'd expect
--speed
to equal 10 if no options are passed, however I see this instead:The text was updated successfully, but these errors were encountered: