diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/argparse | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/argparse')
-rw-r--r-- | node_modules/argparse/CHANGELOG.md | 6 | ||||
-rw-r--r-- | node_modules/argparse/README.md | 10 | ||||
-rw-r--r-- | node_modules/argparse/lib/action.js | 2 | ||||
-rw-r--r-- | node_modules/argparse/lib/help/formatter.js | 4 | ||||
-rw-r--r-- | node_modules/argparse/package.json | 2 |
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 ======== -[](http://travis-ci.org/nodeca/argparse) +[](http://travis-ci.org/nodeca/argparse) [](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", |