Skip to content

Commit 948eb58

Browse files
committed
Update CLI
1 parent 145b44c commit 948eb58

File tree

1 file changed

+6
-4
lines changed
  • lib/node_modules/@stdlib/_tools/readme/to-html/bin

1 file changed

+6
-4
lines changed

lib/node_modules/@stdlib/_tools/readme/to-html/bin/cli

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,14 @@ function main() {
6767
})
6868
});
6969

70-
// Get any provided command-line arguments:
71-
args = cli.args();
72-
7370
// Get any provided command-line options:
7471
flags = cli.flags();
72+
if ( flags.help || flags.version ) {
73+
return;
74+
}
75+
76+
// Get any provided command-line arguments:
77+
args = cli.args();
7578

7679
// Extract options...
7780
opts = {};
@@ -105,4 +108,3 @@ function main() {
105108
}
106109

107110
main();
108-

0 commit comments

Comments
 (0)