commandlineparser / commandlineparser/commandline
Initializing a parser with the configuration lambda does nothing.
- Linguagem predominante
- C#
- Estrelas
- 4.8k
- Forks
- 478
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
A requirement for my project involves that the command line arguments that I pass in look like `argumentKey=argumentValue`. I recognize that this tool defaults to parsing items as `--argumentKey=argumentValue`. So I naturally was led into trying the following.
```cs
static void Main(string[] args){
var parser = new Parser(config => config.EnableDashDash = false);
return parser.ParseArguments(args)
.MapResult(RunMyProgram, errors => -1);
}
```
Problem is though, initializing that new Parser has no effect on the program and there doesn't seem to be any documentation on how to configure the parser.
Any help on this is much appreciated!
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Comece pelo construtor de Parser e pela chamada de ParseArguments(args) mostrada no relatório, e reproduza o comportamento com argumentKey=argumentValue. Confirme o caminho de configuração pretendido e documente ou teste o resultado para que a lambda deixe de não ter efeito.
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