mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 08:02:55 +00:00
feat: update to new meeting date
This commit is contained in:
20
src/cli.ts
20
src/cli.ts
@@ -27,8 +27,20 @@ import {tidy} from './tasks/tidy';
|
||||
import {unlabel} from './tasks/unlabel';
|
||||
|
||||
// add default handler for unhandled rejections
|
||||
process.on('unhandledRejection', async (err) => {
|
||||
await Logger.error('UNHANDLED REJECTION', err.stack);
|
||||
process.on('unhandledRejection', async (reason) => {
|
||||
if (reason instanceof Error) {
|
||||
await Logger.error('Unhandled rejection', reason.stack);
|
||||
} else {
|
||||
await Logger.error('Unhandled rejection', reason);
|
||||
}
|
||||
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
// error on unknown commands
|
||||
commander.on('command:*', async () => {
|
||||
await Logger.error('Invalid command: %s\nSee --help for a list of available commands.', commander.args.join(' '));
|
||||
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
@@ -78,7 +90,3 @@ commander
|
||||
|
||||
commander
|
||||
.parse(process.argv);
|
||||
|
||||
if (commander.args.length < 1) {
|
||||
commander.help();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user