commandlineparser / commandlineparser/commandline
How to make an input parameter/flag default to a named Environment Variable?
未关闭
question
- 主要语言
- C#
- 星标
- 4.8k
- 派生
- 478
- PR 合并指标
- 30 天内没有已合并 PR
描述
As the title says;
- I want a flag/input parameter named `--foo-bar`. (No probs there).
- I want `--help` to show that `--foo-bar` gets its default value from environment variable `FOO_BAR`.
(Maybe also show the value of the current envvar `FOO_BAR` if it exists in current shell/machine)?
贡献指南
这个仓库没有索引到贡献指南
调研方向
issue 中没有列出文件、测试或入口点。先定位选项默认值和帮助生成的处理路径,然后明确环境变量是否应提供默认值,以及它们的当前值是否应显示在帮助中。完成的标准是行为和显示格式已明确规定,并且有测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100