mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-22 23:22:05 +01:00
Do not overwrite command name.
Doing so would break resolution of command.usage.header strings
This commit is contained in:
parent
86e39809ae
commit
3801a644ef
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue