Skip to content

Commit 7df5b16

Browse files
authored
1 parent b91b4ef commit 7df5b16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Options.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public interface Options {
8787
Optional<Boolean> verbose();
8888

8989
/**
90-
* Indicates whether to show error messages.
90+
* Indicates whether to show error stack traces.
9191
*
9292
* @return an {@link Optional} containing the boolean flag, or empty if not set
9393
*/

maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public Optional<Boolean> verbose() {
9797

9898
@Override
9999
public Optional<Boolean> showErrors() {
100-
if (commandLine.hasOption(CLIManager.SHOW_ERRORS)) {
100+
if (commandLine.hasOption(CLIManager.SHOW_ERRORS) || verbose().orElse(false)) {
101101
return Optional.of(Boolean.TRUE);
102102
}
103103
return Optional.empty();

0 commit comments

Comments
 (0)