traxxx/src/argv.js

27 lines
591 B
JavaScript
Raw Normal View History

'use strict';
const yargs = require('yargs');
const { argv } = yargs
.command('npm start')
.option('render', {
describe: 'Fetch data without rendering interface',
type: 'boolean',
default: true,
})
.option('scene', {
describe: 'Fetch scene info from URL',
type: 'string',
})
.option('copy', {
describe: 'Copy relevant result to clipboard',
type: 'boolean',
alias: 'c',
})
.option('debug', {
describe: 'Show error stack traces',
type: 'boolean',
});
module.exports = argv;