Parser gets confused when combining CommandArguments, settings inheritance and branches #1309
RamonMeffert
started this conversation in
General
Replies: 1 comment
-
@RamonMeffert The parser is not really confused here, the error-message is... let's say "not really good". 😁 You created a default command by using
works the way it does. Additionally, you created a branch and a command using app.Configure(c => {
c.AddBranch("name", name => {
name.AddCommand<InheritedCommand>("set");
});
}); So, now, If you run
which means, that by running PS C:\> dotnet run -- name set 123 "Susan" You'd get the "ouptut" that you wanted. The "mix" of arguments and command-path in your example is currently not supported. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Information
Describe the bug
When inheriting settings, configuring a branch, and using a
CommandArgument
in the base class, the parser gets confused:Settings and Commands
To Reproduce
Minimal example: https://dotnetfiddle.net/jpVdJ3
Expected behavior
The parser should be able to distinguish branches and commands, I think? I'm not sure what's going wrong.
Screenshots
N/A
Additional context
The example here is simplified, if you want a more elaborate example (more branches, more complex settings), let me know!
Beta Was this translation helpful? Give feedback.
All reactions