Socket
Socket
Sign inDemoInstall

argparse

Package Overview
Dependencies
2
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

80

CHANGELOG.md

@@ -0,5 +1,11 @@

1.0.4 / 2016-01-17
------------------
- Maintenance: lodash update to 4.0.0.
1.0.3 / 2015-10-27
------------------
* Fix parse `=` in args: `--examplepath="C:\myfolder\env=x64"`. #84, @CatWithApple.
- Fix parse `=` in args: `--examplepath="C:\myfolder\env=x64"`. #84, @CatWithApple.

@@ -10,3 +16,3 @@

* Relaxed lodash version dependency.
- Relaxed lodash version dependency.

@@ -17,3 +23,3 @@

* Changed dependencies to be compatible with ancient nodejs.
- Changed dependencies to be compatible with ancient nodejs.

@@ -24,6 +30,6 @@

* Maintenance release.
* Replaced `underscore` with `lodash`.
* Bumped version to 1.0.0 to better reflect semver meaning.
* HISTORY.md -> CHANGELOG.md
- Maintenance release.
- Replaced `underscore` with `lodash`.
- Bumped version to 1.0.0 to better reflect semver meaning.
- HISTORY.md -> CHANGELOG.md

@@ -34,3 +40,3 @@

* Maintenance release. Updated dependencies and docs.
- Maintenance release. Updated dependencies and docs.

@@ -41,3 +47,3 @@

* Fixed #55, @trebor89
- Fixed #55, @trebor89

@@ -48,3 +54,3 @@

* Fixed #62, @maxtaco
- Fixed #62, @maxtaco

@@ -55,3 +61,3 @@

* Added `.npmignore` to reduce package size
- Added `.npmignore` to reduce package size

@@ -62,3 +68,3 @@

* Fixed conflictHandler (#46), @hpaulj
- Fixed conflictHandler (#46), @hpaulj

@@ -69,6 +75,6 @@

* Multiple bugfixes, @hpaulj
* Added 70+ tests (ported from python), @hpaulj
* Added conflictHandler, @applepicke
* Added fromfilePrefixChar, @hpaulj
- Multiple bugfixes, @hpaulj
- Added 70+ tests (ported from python), @hpaulj
- Added conflictHandler, @applepicke
- Added fromfilePrefixChar, @hpaulj

@@ -79,5 +85,5 @@

* Added [mutual exclusion](http://docs.python.org/dev/library/argparse.html#mutual-exclusion)
- Added [mutual exclusion](http://docs.python.org/dev/library/argparse.html#mutual-exclusion)
support, thanks to @hpaulj
* Fixed options check for `storeConst` & `appendConst` actions, thanks to @hpaulj
- Fixed options check for `storeConst` & `appendConst` actions, thanks to @hpaulj

@@ -88,6 +94,6 @@

* Fixed option dest interferens with other options (issue #23), thanks to @hpaulj
* Fixed default value behavior with `*` positionals, thanks to @hpaulj
* Improve `getDefault()` behavior, thanks to @hpaulj
* Imrove negative argument parsing, thanks to @hpaulj
- Fixed option dest interferens with other options (issue #23), thanks to @hpaulj
- Fixed default value behavior with `*` positionals, thanks to @hpaulj
- Improve `getDefault()` behavior, thanks to @hpaulj
- Imrove negative argument parsing, thanks to @hpaulj

@@ -98,4 +104,4 @@

* Fixed parser parents (issue #19), thanks to @hpaulj
* Fixed negative argument parse (issue #20), thanks to @hpaulj
- Fixed parser parents (issue #19), thanks to @hpaulj
- Fixed negative argument parse (issue #20), thanks to @hpaulj

@@ -106,4 +112,4 @@

* Fixed 'choices' argument parse (issue #16)
* Fixed stderr output (issue #15)
- Fixed 'choices' argument parse (issue #16)
- Fixed stderr output (issue #15)

@@ -114,3 +120,3 @@

* Fixed check for conflict of options (thanks to @tomxtobin)
- Fixed check for conflict of options (thanks to @tomxtobin)

@@ -121,3 +127,3 @@

* Fix parser #setDefaults method (thanks to @tomxtobin)
- Fix parser #setDefaults method (thanks to @tomxtobin)

@@ -128,4 +134,4 @@

* Fixed pseudo-argument support (thanks to @CGamesPlay)
* Fixed addHelp default (should be true), if not set (thanks to @benblank)
- Fixed pseudo-argument support (thanks to @CGamesPlay)
- Fixed addHelp default (should be true), if not set (thanks to @benblank)

@@ -136,3 +142,3 @@

* Fixed formatter api name: Formatter -> HelpFormatter
- Fixed formatter api name: Formatter -> HelpFormatter

@@ -143,5 +149,5 @@

* Added basic tests
* Removed excess whitespace in help
* Fixed error reporting, when parcer with subcommands
- Added basic tests
- Removed excess whitespace in help
- Fixed error reporting, when parcer with subcommands
called with empty arguments

@@ -153,4 +159,4 @@

* Fixed line wrapping in help formatter
* Added better error reporting on invalid arguments
- Fixed line wrapping in help formatter
- Added better error reporting on invalid arguments

@@ -161,2 +167,2 @@

* First release.
- First release.

@@ -0,1 +1,3 @@

'use strict';
module.exports = require('./lib/argparse');

@@ -266,3 +266,3 @@ /** internal

if (optionString.match(self._regexpNegativeNumber)) {
if (!_.any(self._hasNegativeNumberOptionals)) {
if (!_.some(self._hasNegativeNumberOptionals)) {
self._hasNegativeNumberOptionals.push(true);

@@ -269,0 +269,0 @@ }

@@ -594,4 +594,4 @@ /**

if (group.required) {
actionUsed = _.any(group._groupActions, function (action) {
return _.contains(seenNonDefaultActions, action);
actionUsed = _.some(group._groupActions, function (action) {
return _.includes(seenNonDefaultActions, action);
});

@@ -777,3 +777,3 @@

if (argString.match(this._regexpNegativeNumber)) {
if (!_.any(this._hasNegativeNumberOptionals)) {
if (!_.some(this._hasNegativeNumberOptionals)) {
return null;

@@ -780,0 +780,0 @@ }

//
// Constants
//
'use strict';
module.exports.EOL = '\n';

@@ -5,0 +8,0 @@

@@ -62,3 +62,3 @@ 'use strict';

lines = lines.map(function (line) {
return _.trimRight(indent + line);
return _.trimEnd(indent + line);
});

@@ -65,0 +65,0 @@ return lines.join('\n');

{
"name": "argparse",
"description": "Very powerful CLI arguments parser. Native port of argparse - python's options parsing library",
"version": "1.0.3",
"version": "1.0.4",
"keywords": [

@@ -23,3 +23,3 @@ "cli",

"dependencies": {
"lodash": ">= 3.2.0 < 4.0.0",
"lodash": ">= 4.0.0 < 5.0.0",
"sprintf-js": "~1.0.2"

@@ -26,0 +26,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc