Detecting switches
まだ誰も着手していません。
評価
調査の方向性
ソースファイル、テスト、エントリポイントのいずれも特定されていません。まず、文字列値を取るオプションのスイッチについて、オプション解析と検証の動作を特定し、次に、省略されたスイッチは有効なままであり、値なしで指定されたスイッチは拒否されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
I am getting confused here:
public class Options
{
[Option('c', "create", Required = false, HelpText = "Creates an empty CSV. Eg: -c \".\\File.csv\"")]
public string EmptyCsvFilePath { get; set; }
[Option('x', "clm", Required = false, HelpText = "Import history from CLM Explorer. Eg: -x \".\\File.csv\"")]
public string ClmExplorerHistoryPath { get; set; }
[Option('h', "hist", Required = false, HelpText = "Import generic history. Eg: -h \".\\File.csv\"")]
public string GenericHistoryPath { get; set; }
}
All these switched are optional. But, if the switch is used then the values must be provided.
How do I handle this? At the moment the paths are null if either the switch is not provided or no path is provided. But it is only an issue if the switch was provided and no path.
if a switch is provided, it should have a value.
Using latest stable release.
Please help me. Thanks.
- 主要言語
- C#
- スター
- 4.8k
- フォーク
- 478
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
commandlineparser/commandline のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
commandlineparser/commandline#951 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
commandlineparser/commandline#880 · リアクション 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
commandlineparser/commandline#952 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
commandlineparser/commandline#948 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
commandlineparser/commandline#947 ·
commandlineparser/commandline の issue をすべて見る
似ている issue
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/arrow-adbc#4809 ·