dist/utils.js
function stripVariadic(val, variadic) {
    variadic = escape(variadic || constants_1.VARIADIC_CHAR);
    var exp = new RegExp(variadic + '$');
    return val.replace(exp, '');
}
function stripVariadic(val, variadic) {
    variadic = escape(variadic || constants_1.VARIADIC_CHAR);
    var exp = new RegExp(variadic + '$');
    return val.replace(exp, '');
}
Strips variadic chars from flag.

@param val the value to be stripped.
@param negate the characters denoting variadic.