Open kvchernyaev opened 6 years ago
Check out https://github.com/j-maly/CommandLineParser/wiki/Command-line-format AcceptAdditionalArguments allows to verify parameters not starting with - or --, like the directories in this example: Finder.exe -s 3 --distinct directory1 directory2 directory3
If you want to allow unkown arguments starting with - or --, this is not supported.
Can i do it myself and make pull request? I want to allow (by option) parameters
Sounds interesting, sure, I am happy to accept pull requests
Maybe that should be done in https://github.com/j-maly/CommandLineParser/blob/40120ac02a670dae0ace4e21103d97be370ad46e/src/CommandLineArgumentsParser/CommandLineParser.cs#L595
Such that LookupArgument() should return a new instance of an Argument derived type if no argument is found ?
The existing option AdditionalArgumentsSettings.AcceptAdditionalArguments = true throws an exception UnknownArgumentException if a not defined parameter passed. I need an option to allow unknown arguments.