commandlineparser / commandlineparser/commandline

Default value callback

Offen
#751 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
4.8k
Forks
478
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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!

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.