1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

CoffeeScript 1.3.0

This commit is contained in:
Jeremy Ashkenas 2012-04-10 14:57:45 -04:00
parent 1b3af684cb
commit ed8d94f69c
74 changed files with 1587 additions and 698 deletions

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.2.1-pre
// Generated by CoffeeScript 1.3.0
(function() {
var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments;
@ -52,7 +52,9 @@
throw new Error("unrecognized option: " + arg);
}
}
if (seenNonOptionArg || !isOption) options["arguments"].push(arg);
if (seenNonOptionArg || !isOption) {
options["arguments"].push(arg);
}
}
return options;
};
@ -60,7 +62,9 @@
OptionParser.prototype.help = function() {
var letPart, lines, rule, spaces, _i, _len, _ref;
lines = [];
if (this.banner) lines.unshift("" + this.banner + "\n");
if (this.banner) {
lines.unshift("" + this.banner + "\n");
}
_ref = this.rules;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
rule = _ref[_i];
@ -89,7 +93,9 @@
_results = [];
for (_i = 0, _len = rules.length; _i < _len; _i++) {
tuple = rules[_i];
if (tuple.length < 3) tuple.unshift(null);
if (tuple.length < 3) {
tuple.unshift(null);
}
_results.push(buildRule.apply(null, tuple));
}
return _results;
@ -97,7 +103,9 @@
buildRule = function(shortFlag, longFlag, description, options) {
var match;
if (options == null) options = {};
if (options == null) {
options = {};
}
match = longFlag.match(OPTIONAL);
longFlag = longFlag.match(LONG_FLAG)[1];
return {