aboutsummaryrefslogtreecommitdiff
path: root/node_modules/argparse/lib
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/argparse/lib')
-rw-r--r--node_modules/argparse/lib/action.js2
-rw-r--r--node_modules/argparse/lib/help/formatter.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/argparse/lib/action.js b/node_modules/argparse/lib/action.js
index ef3598993..1483c79ff 100644
--- a/node_modules/argparse/lib/action.js
+++ b/node_modules/argparse/lib/action.js
@@ -10,7 +10,7 @@
* line. The keyword arguments to the Action constructor are also all attributes
* of Action instances.
*
- * #####Alowed keywords:
+ * ##### Allowed keywords:
*
* - `store`
* - `storeConstant`
diff --git a/node_modules/argparse/lib/help/formatter.js b/node_modules/argparse/lib/help/formatter.js
index a8e414891..29036c14b 100644
--- a/node_modules/argparse/lib/help/formatter.js
+++ b/node_modules/argparse/lib/help/formatter.js
@@ -414,7 +414,7 @@ HelpFormatter.prototype._formatUsage = function (usage, actions, groups, prefix)
// if prog is long, put it on its own line
} else {
indent = $$.repeat(' ', prefix.length);
- parts = optionalParts + positionalParts;
+ parts = optionalParts.concat(positionalParts);
lines = _getLines(parts, indent);
if (lines.length > 1) {
lines = [].concat(
@@ -422,7 +422,7 @@ HelpFormatter.prototype._formatUsage = function (usage, actions, groups, prefix)
_getLines(positionalParts, indent)
);
}
- lines = [ prog ] + lines;
+ lines = [ prog ].concat(lines);
}
// join lines into usage
usage = lines.join(c.EOL);