Skip to content

Commit f6cf166

Browse files
author
Juhyung Park
committed
Add non-zero exit code when the program fails
1 parent 4b1ede2 commit f6cf166

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ commander.on("--help", () => {
3939
async function main(action: string, option: Option) {
4040
if (!action) {
4141
commander.outputHelp();
42+
process.exit(1);
4243
return;
4344
}
4445
const cckey = await CCKey.create({});
@@ -105,6 +106,7 @@ async function main(action: string, option: Option) {
105106
}
106107
} catch (err) {
107108
console.log(err.toString());
109+
process.exit(1);
108110
}
109111
}
110112

0 commit comments

Comments
 (0)