Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
action: CustomAction2,
});
const constExample = new ArgumentParser();
constExample.addArgument(
['-f', '--foo'],
{
help: 'foo bar',
nargs: Const.ONE_OR_MORE
}
);
constExample.addArgument(
['-b', '--bar'],
{
help: 'bar foo',
nargs: Const.ZERO_OR_MORE
}
);
constExample.addArgument(
'--baz',
{
help: 'baz',
nargs: Const.OPTIONAL
}
);
constExample.addArgument(
'--qux',
{
help: Const.SUPPRESS
}
);
constExample.addArgument(