UNPKG

intradoc

Version:

In-place document content replacer CLI utility.

43 lines (40 loc) 837 B
'use strict'; class CLIApp { _name; _version; _homepage; _license; _author; _flags = []; constructor(options) { this._name = options.name; this._version = options.version; this._homepage = options.homepage; this._license = options.license; this._author = options.author; } get name() { return this._name; } get version() { return this._version; } get homepage() { return this._homepage; } get license() { return this._license; } get author() { return this._author; } addFlags(flags) { this._flags.push(...flags); return this; } isFlag(value) { return this._flags.includes(value); } } module.exports = CLIApp; //# sourceMappingURL=index.js.map