From 2c37a7a38e8a4bb2b60e67d3169d4e660f477abf Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sun, 17 Oct 2021 10:58:44 +0200 Subject: [PATCH] Simplify args help --- .../src/main/java/org/apache/maven/cli/CLIManager.java | 2 +- .../src/main/java/org/apache/maven/cli/MavenCli.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java b/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java index 463edaaa1d..e15af81aa8 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java @@ -188,7 +188,7 @@ public class CLIManager width = HelpFormatter.DEFAULT_WIDTH; } - formatter.printHelp( pw, width, "mvn [options] [] []", + formatter.printHelp( pw, width, "mvn [args]", System.lineSeparator() + "Options:", options, HelpFormatter.DEFAULT_LEFT_PAD, HelpFormatter.DEFAULT_DESC_PAD, System.lineSeparator(), false ); diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java index dc0f6be38f..ead1331307 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java @@ -1065,7 +1065,7 @@ public class MavenCli if ( result.canResume() ) { - logBuildResumeHint( "mvn -r" ); + logBuildResumeHint( "mvn [args] -r" ); } else if ( !failedProjects.isEmpty() ) { @@ -1078,7 +1078,7 @@ public class MavenCli if ( !firstFailedProject.equals( sortedProjects.get( 0 ) ) ) { String resumeFromSelector = getResumeFromSelector( sortedProjects, firstFailedProject ); - logBuildResumeHint( "mvn -rf " + resumeFromSelector ); + logBuildResumeHint( "mvn [args] -rf " + resumeFromSelector ); } }