fclp / fluent-command-line-parser

A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface
Other
530 stars 85 forks source link

SetupHelp workflow #47

Open graniv opened 9 years ago

graniv commented 9 years ago

Hi,

When you have to call help, the parser: ICommandLineParserResult result = parser.Parse(args); doesn't parse args at all. It'd nice if we can have all arguments parsed even if we the property HelpCalled = true; because we might have a use another argument to do something else. :)

siywilliams commented 9 years ago

What what be there desired process if the arguments were still processed when HelpCalled = true but some invalid arguments were found?

Have you got an example of how you would use this, I could do with a better picture painted in my mind!

graniv commented 9 years ago

In fact, in case we had /arg1 arg1Value /arg2 arg2Value /? and then we parse... the parser can parse at least arg1 and arg2 even if it detects the help option and no error.

So in my console, maybe I would like to write (or do something else) if ICommandLineParserResult result return at least arg1 and/or arg2. But for now result returns only HelpCalled = true and no options count. However, it's not an error to tell I have 2 options (whitout help option) not 0.

What do you think ? :)