No supplied parameters prints only the Usage part but not the Options description
dhilgarth opened this issue · comments
Daniel Hilgarth commented
Just create a new console project, add the NuGet package and this line to Program.cs:
Then, run the application.
The output is this:
Usage:
prog command ARG <myarg> [OPTIONALARG] [-o -s=<arg> --long=ARG --switch]
prog files FILE...
Expected (at least):
Usage:
prog command ARG <myarg> [OPTIONALARG] [-o -s=<arg> --long=ARG --switch]
prog files FILE...
Options:
-o Short switch.
-s=<arg> Short option with arg.
--long=ARG Long option with arg.
--swith Long switch.
Vladimir Keleshev commented
This is as expected. Docopt only shows a brief usage in case of error and full usage in case of --help
command.