mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-21 20:47:58 +01:00
Properly match MissingArg exception code
This commit is contained in:
parent
84554cdfa1
commit
80976573ba
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ class SOPExceptionExitCodeMapper : IExitCodeExceptionMapper {
|
|||
// Unmatched subcommand
|
||||
SOPGPException.UnsupportedSubcommand.EXIT_CODE
|
||||
}
|
||||
} else if (exception is MissingParameterException) {
|
||||
SOPGPException.MissingArg.EXIT_CODE
|
||||
} else if (exception is ParameterException) {
|
||||
// Invalid option (e.g. `--as invalid`)
|
||||
SOPGPException.UnsupportedOption.EXIT_CODE
|
||||
|
|
Loading…
Reference in a new issue