21 lines
652 B
JavaScript
21 lines
652 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.sanitize = exports.defaults = void 0;
|
|
// tweaks and handlers
|
|
const defaults = () => {
|
|
// default command
|
|
const DefaultCommand = 'info';
|
|
if (process.argv.length === 2) {
|
|
process.argv.push(DefaultCommand);
|
|
}
|
|
// currently no default handler, display only :
|
|
process.on('unhandledRejection', (reason) => {
|
|
console.error('Unhandled rejection, reason: ', reason);
|
|
});
|
|
};
|
|
exports.defaults = defaults;
|
|
const sanitize = (argv) => {
|
|
return argv;
|
|
};
|
|
exports.sanitize = sanitize;
|
|
//# sourceMappingURL=_cli.js.map
|