commandlineparser / commandlineparser/commandline
Just giving --version as argument gives an error
- Lenguaje dominante
- C#
- Estrellas
- 4.8k
- Forks
- 478
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I look around the issues and found a couple of issues that are close to mine but not quite.
The problem I have is just giving the "--version" as a argument gives an error. I can handle the version with .WithNotParsed and write out "version" at the end of the list but it always gives an error too. "--help" works fine without an error.
Am I missing something? Is it also possible to not show the options if you just want to give the version information?
H:\>SEMImages.exe --version
SEMImages 2.0.0.0
Linus Silvander © 2021
ERROR(S):
Option 'version' is unknown.
-f, --file Choose file to analyze. If both a file and directory is given, the file will be used.
-d, --dir Choose directory to analyze. If no directory is given the current path will be used.
--aperture Add aperture size.
--detector Add detector used.
--date Add date when image was taken.
--EHT Add acceleration voltage.
--mag Add magnification.
--stage Add all stage values. Scan rotation is only added if turned on.
--time Add time when image was taken.
--WD Add working distance.
--help Display this help screen.
--version Display version information.
version
H:\>
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza reproduciendo el comportamiento informado de `SEMImages.exe --version` e inspecciona cómo el analizador de la línea de comandos gestiona la opción de versión frente a `--help`. Determina si `--version` puede completarse sin un error de opción desconocida y sin mostrar las demás opciones; se considera terminado cuando la salida de la versión se devuelve correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100