Skip to content

Can't get help descriptions for commands #91

Open
@OsirisTerje

Description

@OsirisTerje

I have set up the system using the non-generic parser, with a set of commands. Each command has a set of options with their descriptions.
I have set up the help system using
parser.SetupHelp("?", "help").Callback(text => Console.WriteLine(text));

Now calling the app like: myapp gitignore -?
After parsing the arguments, I see that the HelpCalled property is true, but the text coming out is just:
"No options have been setup"

A typical setup for the commands are like:

var gi = parser.SetupCommand<GitIgnoreCommand>("gitignore").OnSuccess(Execute);
gi.Setup(args => args.Replace).As('r', "replace").SetDefault(false).WithDescription("Replace the existing instead of merging in the latest, applies to all gitignore files");

I would expect the description texts for each option to be displayed.
What am I missing?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions