commandlineparser / commandlineparser/commandline

Options as Global Variables?

Offen
#844 0 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

I would like to be able to access Options. via methods, and effectively use them as global variables
e.g.

public static string OptionA = Options.OptionA;
public static string OptionB = Options.OptionB;

Is there any way to access the parsed options globally via methods, or do I need to copy them into global variables manually?

Thanks so much for the help!

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.