CLI flags should not be case-sensitive (`apiops -v` fails, `-V` works)
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 58/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- node.js, typescript
- 領域
- cli
調査の方向性
TypeScript CLI の引数解析のエントリーポイントから始め、報告された環境で apiops -v と apiops -V を使って動作を再現します。-V と --version がどのように登録されているかを追跡します。完了の条件は、小文字の -v でも既存のフラグを壊さずにインストール済みのバージョンが表示されることです。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 29
- フォーク
- 10
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 22
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/apiops-cli のほかの issue
-
type:question
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Azure/apiops-cli#277 ·
-
type:documentation
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
Azure/apiops-cli#250 ·
-
Documentation P2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Azure/apiops-cli#24 · コメント 1 件 ·
-
type:bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Azure/apiops-cli#291 ·
-
type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
Azure/apiops-cli#276 ·
Azure/apiops-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
copse-dev/agent-pane#2953 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
calcite-components needs triage refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Esri/calcite-design-system#15203 ·