commandlineparser / commandlineparser/commandline

Question: Value parsing based on type

Open
#853 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

I didn't find anything answering my question thus I'm asking here:

Is it possible to parse the options based on the given type? See the following example

```sh
teleport 123 456
```

```sh
tepeport otherside
```

And I have the following options class (record for the sake of brevity):

```c#
public record MyTeleportOptions(string Target, int X, int Y);
```

Is that possible? What other options do I have?

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named; begin by locating the option parsing and type-conversion code in the repository. Determine whether typed positional parsing is supported and document the result or define the required behavior, with coverage for the example commands as the completion criterion.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.