commandlineparser / commandlineparser/commandline

Allow no value

未關閉
#674 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C#
星號
4.8k
分支
478
PR 合併指標
30 天內沒有已合併 PR

描述

I'm trying to implement a string option that can have three states:
1. Not supplied
2. No value
3. Empty or value

I want to do the following:
`MyApp.exe` writes unformatted output to standard output
`MyApp.exe --json` writes JSON formatted output to standard output
`MyApp.exe --json file.json` writes JSON formatted output to `file.json`

Is this currently possible?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

The issue names no files or tests. Start by checking the command-line option parsing entry points and whether an option can distinguish omission, a supplied option with no value, and an empty or explicit value. Verify the three command forms in the issue and define tests for each expected output and destination.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp
領域
cli
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

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

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