How to use the args.ConfigurationError function in args

To help you get started, we’ve selected a few args examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kriskowal / narwhal-lib / tests / args / domain.js View on Github external
exports.testNoActionForOptionError = function () {
    var parser = new test.Parser();
    parser.option('-o');
    assert.throwsError(function () {
        parser.parse(['command', '-o']);
    }, args.ConfigurationError);
};