exit with 0 when printing help
This commit is contained in:
parent
e435f5b431
commit
b68b52e95c
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user