commandlineparser / commandlineparser/commandline

Configurable conventions

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

描述

This is a feature request / question.

I'm trying to implement the parser for an unity application. Sadly unity uses different conventions for command line arguments: https://docs.unity3d.com/Manual/CommandLineArguments.html

Is there any way I can configure the parser to use single dashes for the full name (and single dashes for spaces)?

Currently it's not possible for me to use both concurrently:

```ps
& '.\My UnityApp.exe' --configpath="config.json" -logFile log.txt -screen-fullscreen
1 -screen-height 1200 -screen-width 1920
```

Breaks because `RepeatedOptionError` at `configpath`. I understand why this happens but it's blocking me currently.

Does this require a change on the source code of the parser or am I missing something?

貢獻指南

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

研究方向

首先,重現 issue 中顯示的 Unity 命令,並追蹤解析器在何處為 configpath 引發 RepeatedOptionError。接著檢查解析器的設定入口,以判斷是否能同時支援帶有單一連字號的完整名稱和既有慣例。完成標準是命令解析時不再出現該錯誤,且既有參數慣例仍保持相容。

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

評估

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

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

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