CLI flags should not be case-sensitive (`apiops -v` fails, `-V` works)
- Lenguaje dominante
- TypeScript
- Estrellas
- 26
- Forks
- 9
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 20
Descripción
### 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
Guía de contribución
Línea de trabajo
Comienza en el punto de entrada de TypeScript para el análisis de argumentos de la CLI y reproduce el comportamiento con `apiops -v` y `apiops -V` en el entorno indicado. Rastrea cómo se registran `-V` y `--version`; se considera terminado cuando `-v` en minúscula también imprime la versión instalada sin romper los flags existentes.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- node.js, typescript
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 58/100