CLI flags should not be case-sensitive (`apiops -v` fails, `-V` works)
- Lingua principale
- TypeScript
- Stelle
- 26
- Fork
- 9
- Merge medio
- 1g 3h
- PR unite (30g)
- 20
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal punto di ingresso TypeScript per il parsing degli argomenti della CLI e riproduci il comportamento con `apiops -v` e `apiops -V` nell’ambiente segnalato. Traccia come vengono registrati `-V` e `--version`; il lavoro è completo quando anche `-v` in minuscolo stampa la versione installata senza compromettere i flag esistenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- node.js, typescript
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 58/100