Skip to content
Myr

Check if argv is set in array, instead of checking falsey

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ben Sorohan · committed by Ben Sorohan · parent f44fa3b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.js+1 added-1 removed
745 unmodified lines
746747 // If the next argument looks like it might be748 // an argument for this option, we pass it on.749 // If it isn't, then it'll simply be ignored750 if (argv[i + 1] && argv[i + 1][0] !== '-') {750 if ((i + 1) < argv.length && argv[i + 1][0] !== '-') {751 unknownOptions.push(argv[++i]);752 }753 continue;754 }
403 unmodified lines