mirror of https://github.com/apache/maven.git
[MNG-8305] Fix MER showErrors setting (#1795)
--- https://issues.apache.org/jira/browse/MNG-8305
This commit is contained in:
parent
b91b4ef1ae
commit
7df5b16f78
|
@ -87,7 +87,7 @@ public interface Options {
|
|||
Optional<Boolean> verbose();
|
||||
|
||||
/**
|
||||
* Indicates whether to show error messages.
|
||||
* Indicates whether to show error stack traces.
|
||||
*
|
||||
* @return an {@link Optional} containing the boolean flag, or empty if not set
|
||||
*/
|
||||
|
|
|
@ -97,7 +97,7 @@ public abstract class CommonsCliOptions implements Options {
|
|||
|
||||
@Override
|
||||
public Optional<Boolean> showErrors() {
|
||||
if (commandLine.hasOption(CLIManager.SHOW_ERRORS)) {
|
||||
if (commandLine.hasOption(CLIManager.SHOW_ERRORS) || verbose().orElse(false)) {
|
||||
return Optional.of(Boolean.TRUE);
|
||||
}
|
||||
return Optional.empty();
|
||||
|
|
Loading…
Reference in New Issue