Do not overwrite command name.
Doing so would break resolution of command.usage.header strings
This commit is contained in:
parent
86e39809ae
commit
3801a644ef
|
@ -72,8 +72,7 @@ public class SopCLI {
|
||||||
CommandLine gen = cmd.getSubcommands().get("generate-completion");
|
CommandLine gen = cmd.getSubcommands().get("generate-completion");
|
||||||
gen.getCommandSpec().usageMessage().hidden(true);
|
gen.getCommandSpec().usageMessage().hidden(true);
|
||||||
|
|
||||||
cmd.setCommandName(EXECUTABLE_NAME)
|
cmd.setExecutionExceptionHandler(new SOPExecutionExceptionHandler())
|
||||||
.setExecutionExceptionHandler(new SOPExecutionExceptionHandler())
|
|
||||||
.setExitCodeExceptionMapper(new SOPExceptionExitCodeMapper())
|
.setExitCodeExceptionMapper(new SOPExceptionExitCodeMapper())
|
||||||
.setCaseInsensitiveEnumValuesAllowed(true);
|
.setCaseInsensitiveEnumValuesAllowed(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue