commandlineparser / commandlineparser/commandline

Allow no value

オープン
#674 コメント 2 件 リアクション 0 件 担当者 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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。