Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
help: 'baz',
nargs: Const.OPTIONAL
}
);
constExample.addArgument(
'--qux',
{
help: Const.SUPPRESS
}
);
constExample.addArgument(
'quux',
{
help: 'quux',
nargs: Const.REMAINDER
}
);
constExample.printHelp();
console.log('-----------');
args = constExample.parseArgs('--foo x --bar --baz y --qux z a b c d e'.split(' '));
console.dir(args);
console.log('-----------');