commandlineparser / commandlineparser/commandline

Question: Value parsing based on type

Abierto
#853 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C#
Estrellas
4.8k
Forks
478
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.