Properly match MissingArg exception code

This commit is contained in:
Paul Schaub 2024-09-19 19:20:33 +02:00
parent 84554cdfa1
commit 80976573ba
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -21,6 +21,8 @@ class SOPExceptionExitCodeMapper : IExitCodeExceptionMapper {
// Unmatched subcommand // Unmatched subcommand
SOPGPException.UnsupportedSubcommand.EXIT_CODE SOPGPException.UnsupportedSubcommand.EXIT_CODE
} }
} else if (exception is MissingParameterException) {
SOPGPException.MissingArg.EXIT_CODE
} else if (exception is ParameterException) { } else if (exception is ParameterException) {
// Invalid option (e.g. `--as invalid`) // Invalid option (e.g. `--as invalid`)
SOPGPException.UnsupportedOption.EXIT_CODE SOPGPException.UnsupportedOption.EXIT_CODE