UNPKG

@donmahallem/trapeze-client-desktop

Version:

An electron app to be used with trapeze endpoints

33 lines 956 B
"use strict"; /*! * Source https://github.com/donmahallem/trapeze */ Object.defineProperty(exports, "__esModule", { value: true }); const yargs = require("yargs"); exports.parseArgs = (cb) => { // tslint:disable-next-line:no-unused-expression yargs .command('$0 [endpoint]', 'endpoint url to query', (ya) => ya .positional('endpoint', { alias: 'endpoint', describe: 'endpoint url', example: 'https://the-domain.com/', }) .option('port', { default: 9482, describe: 'port to bind on', type: 'number', }) .option('dev', { boolean: true, default: false, describe: 'Enable dev mode', type: 'boolean', }) .coerce('endpoint', (value) => new URL(value)) .check((argv, aliases) => true), (argv) => { cb(argv); }) .argv; }; //# sourceMappingURL=cli-commands.js.map