commandlineparser / commandlineparser/commandline

Set to true nullable bool arguments without the value

オープン
#316 コメント 12 件 リアクション 7 件 担当者 0 名 GitHub で見る
enhancement
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

Consider the following class:

```csharp
class Parameters
{
[Option("bool")]
public bool Bool { get; set; }

[Option("nullable-bool")]
public bool? NullableBool { get; set; }
}
```

It works fine for such arguments: `--bool --nullable-bool true` but doesn't work for `--bool --nullable-bool`.

I suggest making it working for nullable bool types.

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

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

評価

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

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

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