aboutsummaryrefslogtreecommitdiff
path: root/node_modules/argparse
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/argparse')
-rw-r--r--node_modules/argparse/CHANGELOG.md6
-rw-r--r--node_modules/argparse/README.md10
-rw-r--r--node_modules/argparse/lib/action.js2
-rw-r--r--node_modules/argparse/lib/help/formatter.js4
-rw-r--r--node_modules/argparse/package.json2
5 files changed, 17 insertions, 7 deletions
diff --git a/node_modules/argparse/CHANGELOG.md b/node_modules/argparse/CHANGELOG.md
index e422115d4..a43c628cc 100644
--- a/node_modules/argparse/CHANGELOG.md
+++ b/node_modules/argparse/CHANGELOG.md
@@ -1,3 +1,9 @@
+1.0.10 / 2018-02-15
+------------------
+
+- Use .concat instead of + for arrays, #122.
+
+
1.0.9 / 2016-09-29
------------------
diff --git a/node_modules/argparse/README.md b/node_modules/argparse/README.md
index 2d0bcab43..7fa6c4050 100644
--- a/node_modules/argparse/README.md
+++ b/node_modules/argparse/README.md
@@ -1,7 +1,7 @@
argparse
========
-[![Build Status](https://secure.travis-ci.org/nodeca/argparse.png?branch=master)](http://travis-ci.org/nodeca/argparse)
+[![Build Status](https://secure.travis-ci.org/nodeca/argparse.svg?branch=master)](http://travis-ci.org/nodeca/argparse)
[![NPM version](https://img.shields.io/npm/v/argparse.svg)](https://www.npmjs.org/package/argparse)
CLI arguments parser for node.js. Javascript port of python's
@@ -13,6 +13,10 @@ recorded in issue tracker.
- Method names changed to camelCase. See [generated docs](http://nodeca.github.com/argparse/).
- Use `defaultValue` instead of `default`.
+- Use `argparse.Const.REMAINDER` instead of `argparse.REMAINDER`, and
+ similarly for constant values `OPTIONAL`, `ZERO_OR_MORE`, and `ONE_OR_MORE`
+ (aliases for `nargs` values `'?'`, `'*'`, `'+'`, respectively), and
+ `SUPPRESS`.
Example
@@ -82,7 +86,7 @@ ArgumentParser objects
======================
```
-new ArgumentParser({paramters hash});
+new ArgumentParser({parameters hash});
```
Creates a new ArgumentParser object.
@@ -100,7 +104,7 @@ Creates a new ArgumentParser object.
- ```usage``` - The string describing the program usage (default: generated)
- ```conflictHandler``` - Usually unnecessary, defines strategy for resolving conflicting optionals.
-**Not supportied yet**
+**Not supported yet**
- ```fromfilePrefixChars``` - The set of characters that prefix files from which additional arguments should be read.
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);
diff --git a/node_modules/argparse/package.json b/node_modules/argparse/package.json
index 1f9bdb4eb..62fba0a9f 100644
--- a/node_modules/argparse/package.json
+++ b/node_modules/argparse/package.json
@@ -1,7 +1,7 @@
{
"name": "argparse",
"description": "Very powerful CLI arguments parser. Native port of argparse - python's options parsing library",
- "version": "1.0.9",
+ "version": "1.0.10",
"keywords": [
"cli",
"parser",