Skip to content

Commit af068bb

Browse files
committed
Switch logic order to avoid unnecessary work
1 parent 40dd36d commit af068bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/cli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ function main() {
9797
})
9898
});
9999

100-
// Get any provided command-line arguments:
101-
args = cli.args();
102-
103100
// Get any provided command-line options:
104101
flags = cli.flags();
105102
if ( flags.help || flags.version ) {
106103
return;
107104
}
108105

106+
// Get any provided command-line arguments:
107+
args = cli.args();
108+
109109
// Extract the command:
110110
if ( args.length === 0 ) {
111111
return cli.help();

0 commit comments

Comments
 (0)