mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
Resolve https://projekte.kosit.org/kosit/validator/-/issues/97 "Replace docsify from UI"
This commit is contained in:
parent
a10cc14d06
commit
219aeaa1b7
100 changed files with 27369 additions and 1072 deletions
|
|
@ -84,7 +84,7 @@ public class CommandLineApplication {
|
|||
resultStatus = ReturnValue.HELP_REQUEST;
|
||||
} else {
|
||||
resultStatus = ObjectUtils.defaultIfNull(commandLine.getExecutionResult(), ReturnValue.PARSING_ERROR);
|
||||
if (resultStatus.getCode() < 0) {
|
||||
if (resultStatus.isError()) {
|
||||
commandLine.usage(System.out);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public class ReturnValue {
|
|||
|
||||
public static final ReturnValue DAEMON_MODE = new ReturnValue(-100);
|
||||
|
||||
public static final ReturnValue PARSING_ERROR = new ReturnValue(-1);;
|
||||
public static final ReturnValue PARSING_ERROR = new ReturnValue(-1);
|
||||
|
||||
private final int code;
|
||||
|
||||
|
|
@ -45,4 +45,7 @@ public class ReturnValue {
|
|||
return new ReturnValue(count);
|
||||
}
|
||||
|
||||
public boolean isError() {
|
||||
return this.code < 0 && this.code != DAEMON_MODE.code;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue