/
1Rrd0
/
Course
Обзор
Документация
Войти
/
1Rrd0
/
Course
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/argparse/lib/action/store/true.js
26 строк
693 B
dima
2
13 дек 2025, 10:58
13 дек 2025, 10:58
ce5a48e
Код
Авторство
О чём код?
/*:nodoc:* * class ActionStoreTrue * * This action store the values True respectively. * This isspecial cases of 'storeConst' * * This class inherited from [[Action]] **/ 'use strict'; var util = require('util'); var ActionStoreConstant = require('./constant'); /*:nodoc:* * new ActionStoreTrue(options) * - options (object): options hash see [[Action.new]] * **/ var ActionStoreTrue = module.exports = function ActionStoreTrue(options) { options = options || {}; options.constant = true; options.defaultValue = options.defaultValue !== null ? options.defaultValue : false; ActionStoreConstant.call(this, options); }; util.inherits(ActionStoreTrue, ActionStoreConstant);