-
Notifications
You must be signed in to change notification settings - Fork 405
Open
Labels
Milestone
Description
Hi,
Is there a problem with the help "Usage:" output (I am using version 2.0.0-beta1.21308.1)?
The help says that the options must be set before the command. When I do that, an "Unrecognized command or argument" error is displayed. If I set the option after the command, it works.
> rstdoctool osa -?
osa
Creates an open source acknowledgement document
Usage:
**rstdoctool [options] osa < file >...**
Arguments:
<file> Path to a XML description file
Options:
-v, --verbose Displays detailed output and warning messages
-?, -h, --help Show help and usage information
> rstdoctool **-v** osa d:\test.xml # (not working)
> rstdoctool osa **-v** d:\test.xml # (working)
Unrecognized command or argument '-v'
osa
Creates an open source acknowledgement document
Usage:
rstdoctool [options] osa < file >... =====> **rstdoctool osa [options] < file >...**
Arguments:
<file> Path to a XML description file
Options:
-v, --verbose Displays detailed output and warning messages
-?, -h, --help Show help and usage information
Another question. In an older version it was possible to change the titles in the help as follows. How do I do that with the new version?
System.CommandLine.Help.DefaultHelpText.Usage.Title = "SYNOPSIS";
System.CommandLine.Help.DefaultHelpText.Arguments.Title = "ARGUMENTS";
System.CommandLine.Help.DefaultHelpText.Options.Title = "OPTIONS";
System.CommandLine.Help.DefaultHelpText.Commands.Title = "COMMANDS";
Thank you
Ralph
atruskie