CLI flags should not be case-sensitive (`apiops -v` fails, `-V` works)

オープン
#224 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
node.js, typescript
領域
cli

調査の方向性

TypeScript CLI の引数解析のエントリーポイントから始め、報告された環境で apiops -vapiops -V を使って動作を再現します。-V--version がどのように登録されているかを追跡します。完了の条件は、小文字の -v でも既存のフラグを壊さずにインストール済みのバージョンが表示されることです。

索引モデルが issue の本文から書いたものです。

説明

Bug effort:S P2
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/apiops-cli のほかの issue

Azure/apiops-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。