|
@@ -99,14 +99,16 @@ const cli = yargs(hideBin(process.argv))
|
|
|
.command(GithubCommand)
|
|
.command(GithubCommand)
|
|
|
.command(PrCommand)
|
|
.command(PrCommand)
|
|
|
.command(SessionCommand)
|
|
.command(SessionCommand)
|
|
|
- .fail((msg) => {
|
|
|
|
|
|
|
+ .fail((msg, err) => {
|
|
|
if (
|
|
if (
|
|
|
msg?.startsWith("Unknown argument") ||
|
|
msg?.startsWith("Unknown argument") ||
|
|
|
msg?.startsWith("Not enough non-option arguments") ||
|
|
msg?.startsWith("Not enough non-option arguments") ||
|
|
|
msg?.startsWith("Invalid values:")
|
|
msg?.startsWith("Invalid values:")
|
|
|
) {
|
|
) {
|
|
|
|
|
+ if (err) throw err
|
|
|
cli.showHelp("log")
|
|
cli.showHelp("log")
|
|
|
}
|
|
}
|
|
|
|
|
+ if (err) throw err
|
|
|
process.exit(1)
|
|
process.exit(1)
|
|
|
})
|
|
})
|
|
|
.strict()
|
|
.strict()
|