commandlineparser / commandlineparser/commandline

Just giving --version as argument gives an error

Aberta
#789 4 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
C#
Estrelas
4.8k
Forks
478
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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:\>

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Comece reproduzindo o comportamento relatado de `SEMImages.exe --version` e inspecione como o analisador de linha de comando lida com a opção de versão em comparação com `--help`. Determine se `--version` pode ser concluído sem um erro de opção desconhecida e sem exibir as outras opções; considera-se concluído quando a saída da versão é retornada corretamente.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
csharp
Domínio
cli
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.