commandlineparser / commandlineparser/commandline
Option to sort commands by verb name
- Linguagem predominante
- C#
- Estrelas
- 4.8k
- Forks
- 478
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Hi,
Is it possible to get option to sort all command by VerbAttribute?
Example: for next commands -
[Verb("pa", HelpText = "Perform action")]
public class PerformActionRequest { }
[Verb("npa", HelpText = "Don't do it")]
public class PreventActionRequest { }
[Verb("a", HelpText = "Action")]
public class ActionRequest { }
parser.ParseArguments(args, typeof(PreventActionRequest ),
typeof(PerformActionRequest ),
typeof(ActionRequest ))
At cmd we'll see all commands sorted by Verb attribute:
a Action
npa Don't do it
p Perform action
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Start at the parser.ParseArguments entry point and inspect how VerbAttribute values are collected and displayed in command help. Confirm the desired ordering and identify the existing command-listing tests or entry points; done means commands appear sorted by verb name while retaining their help text.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- csharp
- Domínio
- cli
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 32/100