commandlineparser / commandlineparser/commandline
No error when parsing unknown arguments after verb
- Lingua principale
- C#
- Stelle
- 4.8k
- Fork
- 478
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
You can try this with your CLI program (replace `program.exe verb` as appropriate):
`program.exe verb unknownarg`
Replace unknownarg with any random inputs as long as they don't start with `-` and `Parser.Default.ParseArguments` will return `ParserResult.WithParsed`.
It doesn't matter what the value of `ParserSettings.IgnoreUnknownArguments` is.
I don't know if this is a bug or just hasn't been implemented but this is a fundamental problem with the built-in validation of this library.
Does anyone have any solutions to catch unknown args?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.