microsoft / microsoft/TypeScript
Misleading error message for duplicate CLI flags
未关闭
还没有人认领这个 Issue。
Experience Enhancement
Suggestion
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 132
描述
Bug Report
🔎 Search Terms
tsc multiple flag options cli
🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about CLI option parsing
⏯ Playground Link
N/A
💻 Code
Any of:
tsc -b -b
tsc -b --build
tsc -b --clean --build
🙁 Actual behavior
tsc -b -b
error TS5072: Unknown build option '-b'.
🙂 Expected behavior
Something indicating the flag was provided twice, not that it's unknown?
tsc -b -b
error TS5072: Duplicate build option '-b' provided.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用报告中的命令跟踪 TypeScript 的 CLI 选项解析:tsc -b -b、tsc -b --build 和 tsc -b --clean --build。将当前诊断与预期的重复选项措辞进行比较;当重复的 build 标志被报告为重复项而不是未知选项时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100