mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-09-21 15:39:34 +02:00
Properly match MissingArg exception code
This commit is contained in:
parent
ec90d2e951
commit
ce21e07fc2
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue