"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) Eif (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var InvalidArgumentNamesError = (function (_super) {
__extends(InvalidArgumentNamesError, _super);
function InvalidArgumentNamesError(argumentNames) {
_super.call(this);
if (argumentNames.length === 1) {
this.message = "unrecognised argument \"" + argumentNames[0].replace(/[-]*/, "") + "\".";
}
else {
this.message = "unrecognised arguments " + argumentNames.map(function (argument) { return ("\"" + argument.replace(/[-]*/, "") + "\""); }).join(" and ") + ".";
}
}
return InvalidArgumentNamesError;
}(Error));
exports.InvalidArgumentNamesError = InvalidArgumentNamesError;
//# sourceMappingURL=invalid-argument-names-error.js.map |