commandlineparser / commandlineparser/commandline

How to make an input parameter/flag default to a named Environment Variable?

未關閉
#524 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。