From b73b0e1a3746a67a7dfceaacc655ba22fc1ca9a3 Mon Sep 17 00:00:00 2001 From: Johnny Domino Date: Sat, 23 Feb 2013 12:33:23 -0500 Subject: [PATCH] attach help and showHelp arguments to the argv store --- lib/nconf/stores/argv.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/nconf/stores/argv.js b/lib/nconf/stores/argv.js index b130ce3..60c4171 100644 --- a/lib/nconf/stores/argv.js +++ b/lib/nconf/stores/argv.js @@ -61,6 +61,9 @@ Argv.prototype.loadArgv = function () { self.set(key, argv[key]); }); + this.showHelp = optimist.showHelp + this.help = optimist.help + this.readOnly = true; return this.store; }; \ No newline at end of file