Do not overwrite command name.

Doing so would break resolution of command.usage.header strings
This commit is contained in:
Paul Schaub 2022-07-23 01:21:14 +02:00
parent 86e39809ae
commit 3801a644ef
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

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