commandline icon indicating copy to clipboard operation
commandline copied to clipboard

Parsing command line arguments without using reflection?

Open mikechristiansenvae opened this issue 6 months ago • 1 comments

Is there a way to parse command line options without using reflection? As it stands, I have to make a class for each "verb". I would like to be able to specify all of the data that CommandLineParser needs without being required to have a class to represent the verbs.

The documentation for System.CommandLine gives a good example of something that would be good for us. Ideally, I wouldn't need to switch to System.CommandLine, since I already use CommandLineParser.

Is there any way to do this?

mikechristiansenvae avatar Jul 03 '25 13:07 mikechristiansenvae

Thats the way it was designed.

If you have a way to do it, even a draft PR would go a long way towards showing a way to do it like you suggest.

ericnewton76 avatar Dec 05 '25 23:12 ericnewton76