Skip to content
Myr

Merge with conflicts

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

authored by John Gee · committed by John Gee · parents 1b2b950, aed923d · Browse files · 2 files+22 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

2 files+22 added−1 removed

  • tests:+21 added−0 removed
  • other:+1 added−1 removed

2 files+22 added−1 removed

added:test/test.options.subcommand-hyphen.js+21 added
modified:index.js+1 added-1 removed
754 unmodified lines
755756 // If the next argument looks like it might be757 // an argument for this option, we pass it on.758 // If it isn't, then it'll simply be ignored759 if ((i + 1) < argv.length && argv[i + 1][0] !== '-') {759 if ((i + 1) < argv.length && (argv[i + 1][0] !== '-' || argv[i + 1] === '-')) {760 unknownOptions.push(argv[++i]);761 }762 continue;763 }
470 unmodified lines