fix: silent error if bad flag was passed

This commit is contained in:
rekram1-node 2025-09-07 23:12:18 -05:00
parent 74469a0d3d
commit d4ae7efb64

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)