commandlineparser / commandlineparser/commandline

Options as Global Variables?

Open
#844 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.