Parsing command line arguments without using reflection?

Open
#945 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
cli

Research direction

Start by reviewing the CommandLineParser API described in the issue and the linked System.CommandLine parsing documentation. Compare the requested verb and option configuration with the existing class-based approach, then define the expected API and acceptance criteria for supporting parsing without reflection or verb classes.

Written by the indexing model from the issue text.

Description

awaiting response

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?

Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from commandlineparser/commandline

All issues in commandlineparser/commandline

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.