AnonSec Team
Server IP : 161.35.85.9  /  Your IP : 216.73.217.138
Web Server : nginx/1.30.4
System : Linux cheapdeb-ams3 7.1.13+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.1.13-1 (2026-09-03) x86_64
User : root ( 0)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/doc/node-yargs/examples/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /usr/share/doc/node-yargs/examples/requires_arg.js
var yargs = require('yargs/yargs')(process.argv.slice(2));

var argv = yargs.usage('This is my awesome program', {
  'input': {
    description: 'Input file name',
    requiresArg: true,
    short: 'i',
  },
  'output': {
    description: 'Output file name',
    requiresArg: true,
    short: 'o'
  }
}).argv;

yargs.showHelp();

console.log('\n\nInspecting options');
console.dir(argv);

AnonSec - 2021