fix: silent error if bad flag was passed (#2486)
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
Aiden Cline 2025-09-07 23:14:38 -05:00 committed by GitHub
parent 74469a0d3d
commit c8ff81bae4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,7 +84,11 @@ const cli = yargs(hideBin(process.argv))
.command(ExportCommand)
.command(GithubCommand)
.fail((msg) => {
if (msg.startsWith("Unknown argument") || msg.startsWith("Not enough non-option arguments")) {
if (
msg.startsWith("Unknown argument") ||
msg.startsWith("Not enough non-option arguments") ||
msg.startsWith("Invalid values:")
) {
cli.showHelp("log")
}
process.exit(1)