commandlineparser / commandlineparser/commandline

Default value callback

Aperta
#751 2 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

Howdy!

I'm just evaluating this library for a couple of F# projects, and I was wondering if there's any way to provide a function (or `Action<_>`) as the default instead of a static value. This would allow me to pull in values from elsewhere, namely `IConfiguration` so that I get I get config file & env values as the fallback too.

Is anything like this currently possible?

Cheers!

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.