commandlineparser / commandlineparser/commandline

Use keyword to set positional argument

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

Descrizione

I don't think this issue has been submitted before, but #56 seems to want the same sort of thing.

I want this syntax to be the normal usage:

app inputfile outputfile

But I want both arguments to be optional and fallback on defaults:

app

Which means that it would be nice to specify one but not the other:

app inputfile
app -t outputfile

Therefore, I'd like to be able to set outputfile via *either* a positional or a keyword argument. Is this supported?

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.