commandlineparser / commandlineparser/commandline
Sequence - error option is defined multiple times
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
[Wiki - Sequence option](https://github.com/commandlineparser/commandline/wiki/CommandLine-Grammar#sequence-option) states:
> Sequence option
Sequence options require one or more argument value.
its type is: IEnumerable
Option name may be repeated more than one time.
Thus --files file1.txt file2.txt and --files file1.txt --files file2.txt are equivalent.
In fact, using the second example by specifying the parameter twice leads to an error:
ERROR(S):
Option 'input' is defined multiple times.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start with the repeated-option examples in the issue and compare their behavior with the Sequence option rules in the linked wiki page. No source files or tests are named; done means repeated sequence options are accepted as equivalent to one option with multiple values, without the duplicate-definition error.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100