Server IP : 162.213.251.212 / Your IP : 3.145.8.97 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/home/allssztx/www/easybuyer/node_modules/argparse/lib/action/ |
Upload File : |
/*:nodoc:* * class ActionHelp * * Support action for printing help * This class inherided from [[Action]] **/ 'use strict'; var util = require('util'); var Action = require('../action'); // Constants var c = require('../const'); /*:nodoc:* * new ActionHelp(options) * - options (object): options hash see [[Action.new]] * **/ var ActionHelp = module.exports = function ActionHelp(options) { options = options || {}; if (options.defaultValue !== null) { options.defaultValue = options.defaultValue; } else { options.defaultValue = c.SUPPRESS; } options.dest = (options.dest !== null ? options.dest : c.SUPPRESS); options.nargs = 0; Action.call(this, options); }; util.inherits(ActionHelp, Action); /*:nodoc:* * ActionHelp#call(parser, namespace, values, optionString) * - parser (ArgumentParser): current parser * - namespace (Namespace): namespace for output data * - values (Array): parsed values * - optionString (Array): input option string(not parsed) * * Print help and exit **/ ActionHelp.prototype.call = function (parser) { parser.printHelp(); parser.exit(); };