CLI flags should not be case-sensitive (`apiops -v` fails, `-V` works)
- 主要言語
- TypeScript
- スター
- 26
- フォーク
- 9
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 20
説明
### Command that triggered the bug
`apiops -v`
### Expected behavior
Both `apiops -v` and `apiops -V` should print the installed CLI version. Users commonly expect short flags to be case-insensitive, and `-v` is the conventional lowercase form for "version" across most CLIs.
### Actual behavior
Only `apiops -V` prints the version. `apiops -v` fails / is not recognized as the version flag. This is inconsistent and surprising for users.
Ideally, command-line short flags in general should not be case-sensitive — or at minimum, `-v` should be aliased to `-V` (and `--version`) for the version output.
### apiops CLI version
0.4.0-alpha.1
### Environment details
- OS: Windows 11
- Shell: PowerShell 7.6.3
- Node.js: v24.0.1
- npm: 11.11.0
### CI/CD environment
N/A (running locally)
### Is this bug blocking you?
No
コントリビューションガイド
調査の方向性
Start at the TypeScript CLI argument-parsing entry point and reproduce the behavior with `apiops -v` and `apiops -V` in the reported environment. Trace how `-V` and `--version` are registered; done means lowercase `-v` also prints the installed version without breaking existing flags.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js, typescript
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 58/100