aboutsummaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-07 21:38:56 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-07 21:38:56 +0100
commitb68b52e95c126e0d3b9788d6332c19144f9dc7e7 (patch)
tree65121e87f75efc9dc0adf7a1ab05be8d1e57aeb3 /src/headless
parente435f5b431ced3790d477ca44542cc06aa80a068 (diff)
exit with 0 when printing help
Diffstat (limited to 'src/headless')
-rw-r--r--src/headless/clk.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/headless/clk.ts b/src/headless/clk.ts
index 828eb24c0..8b3808a3a 100644
--- a/src/headless/clk.ts
+++ b/src/headless/clk.ts
@@ -458,7 +458,7 @@ export class CommandGroup<GN extends keyof any, TG> {
if (parsedArgs[this.argKey].help) {
this.printHelp(progname, parents);
- process.exit(-1);
+ process.exit(0);
throw Error("not reached");
}