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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.