Describe the bug
Generated usage help is e.g.
Usage: mytool [options] [command]
instead of:
Usage: mytool [command] [options]
To Reproduce
Steps to reproduce the behavior:
- Using this version of the library '2.4.2'
- Run code below
- With these arguments '-h'
- See wrong output "Usage: mytool [options] [command]"
Expected behavior
It should show "Usage: mytool [command] [options]"
Since having any options in front of the command verb fails.
Additional context
Repro code:
[Command("mytool")]
[Subcommand(typeof(MysubCommand))]
class Program
{
static int Main(string[] args) => CommandLineApplication.Execute<Program>(args);
}
[Command]
class MysubCommand { }
As a workaround I currently have a specialized DefaultHelpTextGenerator with overridden GenerateUsage().
Describe the bug
Generated usage help is e.g.
Usage: mytool [options] [command]
instead of:
Usage: mytool [command] [options]
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should show "Usage: mytool [command] [options]"
Since having any options in front of the command verb fails.
Additional context
Repro code:
As a workaround I currently have a specialized DefaultHelpTextGenerator with overridden GenerateUsage().