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