Skip to content

Commit 36ca719

Browse files
committed
Prevented script from running when displaying help or version.
1 parent 3a81fea commit 36ca719

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/doxdox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ while (args.length) {
4545
case '-v':
4646
case '--version':
4747
process.stdout.write(pkg.version + '\n');
48+
process.kill();
4849
break;
4950

5051
case '-h':
@@ -61,6 +62,7 @@ while (args.length) {
6162
process.stdout.write(' - Bootstrap 3 (http://getbootstrap.com/)' + '\n');
6263
process.stdout.write(' - Markdown (http://daringfireball.net/projects/markdown/)' + '\n');
6364
process.stdout.write('\n');
65+
process.kill();
6466
break;
6567

6668
default:

0 commit comments

Comments
 (0)