mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
fixing bug in option parsing with flagged arguments and cake.
This commit is contained in:
parent
be8d812919
commit
4bd657160d
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
|||
for (_c = 0, _e = _d.length; _c < _e; _c++) {
|
||||
rule = _d[_c];
|
||||
if (rule.shortFlag === arg || rule.longFlag === arg) {
|
||||
options[rule.name] = rule.hasArgument ? args[i + 1] : true;
|
||||
options[rule.name] = rule.hasArgument ? args[i += 1] : true;
|
||||
matchedRule = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue