4 * Support action for printing help
5 * This class inherided from [[Action]]
9 var util = require('util');
11 var Action = require('../action');
14 var c = require('../const');
17 * new ActionHelp(options)
18 * - options (object): options hash see [[Action.new]]
21 var ActionHelp = module.exports = function ActionHelp(options) {
22 options = options || {};
23 if (options.defaultValue !== null) {
24 options.defaultValue = options.defaultValue;
26 options.defaultValue = c.SUPPRESS;
28 options.dest = (options.dest !== null ? options.dest : c.SUPPRESS);
30 Action.call(this, options);
33 util.inherits(ActionHelp, Action);
36 * ActionHelp#call(parser, namespace, values, optionString)
37 * - parser (ArgumentParser): current parser
38 * - namespace (Namespace): namespace for output data
39 * - values (Array): parsed values
40 * - optionString (Array): input option string(not parsed)
44 ActionHelp.prototype.call = function (parser) {