| Index: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/lib/action/store.js
|
| diff --git a/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/lib/action/store.js b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/lib/action/store.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8ebc9748b6914cf223c8a6a04a7ada99318d35a0
|
| --- /dev/null
|
| +++ b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/lib/action/store.js
|
| @@ -0,0 +1,50 @@
|
| +/*:nodoc:*
|
| + * class ActionStore
|
| + *
|
| + * This action just stores the argument’s value. This is the default action.
|
| + *
|
| + * This class inherited from [[Action]]
|
| + *
|
| + **/
|
| +'use strict';
|
| +
|
| +var util = require('util');
|
| +
|
| +var Action = require('../action');
|
| +
|
| +// Constants
|
| +var $$ = require('../const');
|
| +
|
| +
|
| +/*:nodoc:*
|
| + * new ActionStore(options)
|
| + * - options (object): options hash see [[Action.new]]
|
| + *
|
| + **/
|
| +var ActionStore = module.exports = function ActionStore(options) {
|
| + options = options || {};
|
| + if (this.nargs <= 0) {
|
| + throw new Error('nargs for store actions must be > 0; if you ' +
|
| + 'have nothing to store, actions such as store ' +
|
| + 'true or store const may be more appropriate');
|
| +
|
| + }
|
| + if (this.constant !== undefined && this.nargs !== $$.OPTIONAL) {
|
| + throw new Error('nargs must be OPTIONAL to supply const');
|
| + }
|
| + Action.call(this, options);
|
| +};
|
| +util.inherits(ActionStore, Action);
|
| +
|
| +/*:nodoc:*
|
| + * ActionStore#call(parser, namespace, values, optionString) -> Void
|
| + * - parser (ArgumentParser): current parser
|
| + * - namespace (Namespace): namespace for output data
|
| + * - values (Array): parsed values
|
| + * - optionString (Array): input option string(not parsed)
|
| + *
|
| + * Call the action. Save result in namespace object
|
| + **/
|
| +ActionStore.prototype.call = function (parser, namespace, values) {
|
| + namespace.set(this.dest, values);
|
| +};
|
|
|