commandlineparser / commandlineparser/commandline
Question: Value parsing based on type
Offen
- Vorherrschende Sprache
- C#
- Sterne
- 4.8k
- Forks
- 478
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.