[MNG-8305] Fix MER showErrors setting (#1795)

---

https://issues.apache.org/jira/browse/MNG-8305
This commit is contained in:
Tamas Cservenak 2024-10-14 19:33:06 +02:00 committed by GitHub
parent b91b4ef1ae
commit 7df5b16f78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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
*/

View File

@ -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();