UNPKG

@anycli/command

Version:
15 lines (14 loc) 507 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _1 = require("."); class Main extends _1.Command { static run(argv = process.argv.slice(2), opts) { return super.run(argv, opts || module.parent && module.parent.parent && module.parent.parent.filename || __dirname); } async run() { const [id, ...argv] = this.argv; await this.config.runCommand(id, argv); } } Main.parserOptions = { '--': false, strict: false }; exports.Main = Main;