Skip to content

Commit

Permalink
Add error exit code for invalid commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Jun 25, 2024
1 parent 4e95fa1 commit 3ba9b5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion theme-utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const commands = {
let command = args?.[0];

if (!commands[command]) {
return showHelp();
showHelp();
process.exit(1);
}

commands[command].run(args);
Expand Down

0 comments on commit 3ba9b5a

Please sign in to comment.