commandlineparser / commandlineparser/commandline

Is it possible to create options with conditional parameters with help generation like in linux tail?

Aperta
#952 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In linux `tail` option `-f` and `--follow` are distinct in that former do not allow to set any values, but latter allow to set `name` or `descriptor` values.
```
-f, --follow[={name|descriptor}]
output appended data as the file grows;
an absent option argument means 'descriptor'
```

Is it possible to define options class to allow that **with** automatic help generation accordingly?
If it is not possible to generate help, is it possible to just create options to allow the distinction?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.