Fix help text newlines

This commit is contained in:
Juan Martín Sotuyo Dodero
2022-08-22 13:18:41 -03:00
parent 3689456ebc
commit 0641a9c316
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ import picocli.CommandLine.ParameterException;
description = "Copy/Paste Detector - find duplicate code")
public class CpdCommand extends AbstractAnalysisPmdSubcommand {
@Option(names = "--language", description = "Source code language.%nValid values: ${COMPLETION-CANDIDATES}%n",
@Option(names = { "--language", "-l" }, description = "The source code language.%nValid values: ${COMPLETION-CANDIDATES}",
defaultValue = "java", converter = CpdLanguageConverter.class, completionCandidates = CpdLanguageCompletionCandidates.class)
private Language language;

View File

@@ -178,7 +178,7 @@ public class PmdCommand extends AbstractAnalysisPmdSubcommand {
}
@Option(names = "--use-version", defaultValue = "java-latest",
description = "Sepcify the language and version PMD should use.%nValid values: ${COMPLETION-CANDIDATES}%n",
description = "The language version PMD should use when parsing source code.%nValid values: ${COMPLETION-CANDIDATES}",
completionCandidates = PmdLanguageVersionTypeSupport.class, converter = PmdLanguageVersionTypeSupport.class)
public void setLanguageVersion(final List<LanguageVersion> languageVersion) {
// Make sure we only set 1 version per language
@@ -198,7 +198,7 @@ public class PmdCommand extends AbstractAnalysisPmdSubcommand {
description = "Force a language to be used for all input files, irrespective of file names. "
+ "When using this option, the automatic language selection by extension is disabled, and PMD "
+ "tries to parse all input files with the given language's parser. "
+ "Parsing errors are ignored.%nValid values: ${COMPLETION-CANDIDATES}%n",
+ "Parsing errors are ignored.%nValid values: ${COMPLETION-CANDIDATES}",
completionCandidates = PmdLanguageTypeSupport.class, converter = PmdLanguageTypeSupport.class)
public void setForceLanguage(final Language forceLanguage) {
this.forceLanguage = forceLanguage;