From 118d9e1c5b87ba2caa727fd05c5f98e7c83a55c6 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 1 Jul 2020 17:34:56 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- argv.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/argv.js b/argv.js index c78e0e3..f8e022b 100644 --- a/argv.js +++ b/argv.js @@ -243,6 +243,7 @@ object.Constructor('Parser', { license: undefined, usage: '$SCRIPTNAME [OPTIONS]', doc: undefined, + // XXX test this with string value... examples: undefined, // XXX add license and version info... //footer: '$SCRIPTNAME v:$VERSION', @@ -272,7 +273,6 @@ object.Constructor('Parser', { priority: 99, handler: function(argv, key, value){ var that = this - var expandVars = this.expandTextVars.bind(this) var formDoc = function(doc, env){ return [doc, ...(env ? @@ -301,6 +301,9 @@ object.Constructor('Parser', { this.options() .map(function([opts, arg, doc, handler]){ return [ + // XXX might be a good idea to keep + // short options in a separate + // column... opts .sort(function(a, b){ return a.length - b.length})