exit with 0 when printing help

This commit is contained in:
Florian Dold 2019-12-07 21:38:56 +01:00
parent e435f5b431
commit b68b52e95c
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -458,7 +458,7 @@ export class CommandGroup<GN extends keyof any, TG> {
if (parsedArgs[this.argKey].help) { if (parsedArgs[this.argKey].help) {
this.printHelp(progname, parents); this.printHelp(progname, parents);
process.exit(-1); process.exit(0);
throw Error("not reached"); throw Error("not reached");
} }