Simplify args help

This commit is contained in:
Michael Osipov 2021-10-17 10:58:44 +02:00 committed by Michael Osipov
parent f46a9131d5
commit 2c37a7a38e
2 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ public class CLIManager
width = HelpFormatter.DEFAULT_WIDTH; width = HelpFormatter.DEFAULT_WIDTH;
} }
formatter.printHelp( pw, width, "mvn [options] [<goal(s)>] [<phase(s)>]", formatter.printHelp( pw, width, "mvn [args]",
System.lineSeparator() + "Options:", options, System.lineSeparator() + "Options:", options,
HelpFormatter.DEFAULT_LEFT_PAD, HelpFormatter.DEFAULT_DESC_PAD, HelpFormatter.DEFAULT_LEFT_PAD, HelpFormatter.DEFAULT_DESC_PAD,
System.lineSeparator(), false ); System.lineSeparator(), false );

View File

@ -1065,7 +1065,7 @@ public class MavenCli
if ( result.canResume() ) if ( result.canResume() )
{ {
logBuildResumeHint( "mvn <args> -r" ); logBuildResumeHint( "mvn [args] -r" );
} }
else if ( !failedProjects.isEmpty() ) else if ( !failedProjects.isEmpty() )
{ {
@ -1078,7 +1078,7 @@ public class MavenCli
if ( !firstFailedProject.equals( sortedProjects.get( 0 ) ) ) if ( !firstFailedProject.equals( sortedProjects.get( 0 ) ) )
{ {
String resumeFromSelector = getResumeFromSelector( sortedProjects, firstFailedProject ); String resumeFromSelector = getResumeFromSelector( sortedProjects, firstFailedProject );
logBuildResumeHint( "mvn <args> -rf " + resumeFromSelector ); logBuildResumeHint( "mvn [args] -rf " + resumeFromSelector );
} }
} }