Initial commit
[yaffs-website] / node_modules / argparse / lib / action / store / false.js
1 /*:nodoc:*
2  * class ActionStoreFalse
3  *
4  * This action store the values False respectively.
5  * This is special cases of 'storeConst'
6  *
7  * This class inherited from [[Action]]
8  **/
9
10 'use strict';
11
12 var util = require('util');
13
14 var ActionStoreConstant = require('./constant');
15
16 /*:nodoc:*
17  * new ActionStoreFalse(options)
18  * - options (object): hash of options see [[Action.new]]
19  *
20  **/
21 var ActionStoreFalse = module.exports = function ActionStoreFalse(options) {
22   options = options || {};
23   options.constant = false;
24   options.defaultValue = options.defaultValue !== null ? options.defaultValue : true;
25   ActionStoreConstant.call(this, options);
26 };
27 util.inherits(ActionStoreFalse, ActionStoreConstant);