google / google/google-java-format
Misleading message for --dry-run with --replace
- Linguagem predominante
- Java
- Estrelas
- 6.2k
- Forks
- 936
- Merge médio
- 6min
- PRs com merge (30d)
- 3
Descrição
If you specify both --dry-run (or -n) and --replace (or -replace, -r or -i) you get a message stating "cannot use --dry-run and --in-place at the same time".
The problem is that there is no --in-place option. inPlace is however the internal variable name used for --replace. There's two possible fixes:
1. Change the message. This could affect anything which tries to use the message in some kind of script.
2. Add the --in-place option at line 68 in CommandLineOptionsParser.java and related help text. This should not affect anything else.
Guia de contribuição
Direção de pesquisa
Comece em CommandLineOptionsParser.java por volta da linha 68 e reproduza a mensagem quando --dry-run (ou -n) for combinado com --replace, -replace, -r ou -i. Revise o texto de ajuda relacionado e determine se o nome da opção exibido ao usuário ou a incompatibilidade relatada deve ser corrigido. Está concluído quando o comando não fizer mais referência a uma opção --in-place indisponível e o texto de ajuda estiver consistente com as flags compatíveis.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- cli
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Ativa
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 72/100