commandlineparser / commandlineparser/commandline
Options as Global Variables?
未关闭
- 主要语言
- C#
- 星标
- 4.8k
- 派生
- 478
- PR 合并指标
- 30 天内没有已合并 PR
描述
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!
贡献指南
这个仓库没有索引到贡献指南
调研方向
没有提到文件、测试或入口点。首先明确所请求的 API 是否应全局公开已解析的选项,以及其生命周期和配置应如何工作;完成的标准是确定一种访问模式,并覆盖预期用法。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100