all files / cli/errors/ invalid-argument-names-error.js

100% Statements 17/17
77.78% Branches 7/9
100% Functions 5/5
100% Lines 13/13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21               
"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