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
1 changed files with 1 additions and 2 deletions

View File

@ -72,8 +72,7 @@ public class SopCLI {
CommandLine gen = cmd.getSubcommands().get("generate-completion");
gen.getCommandSpec().usageMessage().hidden(true);
cmd.setCommandName(EXECUTABLE_NAME)
.setExecutionExceptionHandler(new SOPExecutionExceptionHandler())
cmd.setExecutionExceptionHandler(new SOPExecutionExceptionHandler())
.setExitCodeExceptionMapper(new SOPExceptionExitCodeMapper())
.setCaseInsensitiveEnumValuesAllowed(true);