docopt / docopt.net

Port of docopt to .net

Home Page:https://docopt.github.io/docopt.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No supplied parameters prints only the Usage part but not the Options description

dhilgarth opened this issue · comments

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.

This is as expected. Docopt only shows a brief usage in case of error and full usage in case of --help command.