Improve error handling for oclif "missing required arg"

Change-type: patch
This commit is contained in:
Paulo Castro 2020-06-22 00:54:52 +01:00
parent 70bfe4ce8e
commit 2859d16b31

View File

@ -140,7 +140,7 @@ const EXPECTED_ERROR_REGEXES = [
/^BalenaDeviceNotFound/, // balena-sdk /^BalenaDeviceNotFound/, // balena-sdk
/^BalenaExpiredToken/, // balena-sdk /^BalenaExpiredToken/, // balena-sdk
/^Missing \w+$/, // Capitano, /^Missing \w+$/, // Capitano,
/^Missing \d required argument/, // oclif parser: RequiredArgsError, RequiredFlagError /^Missing \d+ required arg/, // oclif parser: RequiredArgsError, RequiredFlagError
/^Unexpected argument/, // oclif parser: UnexpectedArgsError /^Unexpected argument/, // oclif parser: UnexpectedArgsError
/to be one of/, // oclif parser: FlagInvalidOptionError, ArgInvalidOptionError /to be one of/, // oclif parser: FlagInvalidOptionError, ArgInvalidOptionError
]; ];