You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A combination of a boolean flag and a positional argument leads the the error Flags cannot be assigned a value., which is wrong in my opinion.
To Reproduce
Use the following settings:
// ...[Description("Input files or folders")][CommandArgument(0,"[input]")]publicstring[]Input{get;set;}= Array.Empty<string>();[CommandOption("--dry-run")]publicboolDryRun{get;init;}= false;// ...
And call the app like this:
myapp --dry-run "my-input-folder/"
Expected behavior
As --dry-run is a flag, I would expect spectre.console to handle the fact, taht there is a positional argument in the settings and parse this correctly. In my opinion this should work without error messages.
Workaround
Putting the flag at the end works like expected: