Skip to content

Commit

Permalink
commander.js: new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tathamoddie committed Jan 12, 2022
1 parent 3dbdfcf commit 91f5a85
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app.ts
Expand Up @@ -72,10 +72,7 @@ program
await core.validateConfig();
});

program.on("command:*", () => {
console.error("Invalid command: %s\nSee --help for a list of available commands.", program.args.join(" "));
process.exit(1);
});
program.showHelpAfterError();

program.parse(process.argv);

Expand Down

0 comments on commit 91f5a85

Please sign in to comment.