elfrank/3d-file-converter

View on GitHub
scripts/node.js/utils/args.js

Summary

Maintainability
A
0 mins
Test Coverage
const yargs = require('yargs');

// examples at https://markoskon.com/yargs-examples/
yargs.usage('Usage: $0 [options]');

yargs.option('i', {
  alias: 'inputFile',
  describe: 'Input file',
  type: 'string',
  required: true,
  nargs: 1,
});

yargs.option('o', {
  alias: 'outputFile',
  describe: 'Output file',
  type: 'string',
  required: true,
  nargs: 1,
});

yargs
  .help('h')
  .alias('h', 'help')
  .describe('h', 'Show help');

module.exports = {
  yargs,
};