how to make the CLI tool display commands in help window in C#

Viewed 23

I am working on a CLI tool and want to display commands as well as options when using --help.

I have created a class known as CommandLineOptions which has all the options and it is displayed when i do --help

[Option("name", Required = true, HelpText = "name of the person")]
    public string? name { get; set; }

How do i add command so, when i do --help, commands are also displayed

0 Answers
Related