mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Interpolated strings are expressions.
This commit is contained in:
parent
2e744a1c1b
commit
19ed63129e
11 changed files with 87 additions and 77 deletions
|
@ -37,7 +37,7 @@
|
|||
}
|
||||
}
|
||||
if (is_option && !matched_rule) {
|
||||
throw new Error("unrecognized option: " + arg);
|
||||
throw new Error(("unrecognized option: " + arg));
|
||||
}
|
||||
if (!(is_option)) {
|
||||
options.arguments.push(arg);
|
||||
|
@ -51,7 +51,7 @@
|
|||
var _a, _b, _c, _d, _e, _f, _g, i, let_part, lines, rule, spaces;
|
||||
lines = ['Available options:'];
|
||||
if (this.banner) {
|
||||
lines.unshift("" + this.banner + "\n");
|
||||
lines.unshift(("" + this.banner + "\n"));
|
||||
}
|
||||
_b = this.rules;
|
||||
for (_a = 0, _c = _b.length; _a < _c; _a++) {
|
||||
|
@ -65,7 +65,7 @@
|
|||
return _d;
|
||||
}).call(this).join('') : '';
|
||||
let_part = rule.short_flag ? rule.short_flag + ', ' : ' ';
|
||||
lines.push(" " + let_part + (rule.long_flag) + spaces + (rule.description));
|
||||
lines.push((" " + let_part + (rule.long_flag) + spaces + (rule.description)));
|
||||
}
|
||||
return "\n" + (lines.join('\n')) + "\n";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue