Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/nodeca/argparse

CLI arguments parser for node.js. JS port of python's argparse module.
https://github.com/nodeca/argparse

0.1.13 released

5439af71ea624146f1806b40edcd1d18c6f2bc91 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
added .npmignore

78f463bbab38b2b458f87c7f7d2db4cc2d2ac4b1 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
fixed lint & new tests

4ce5439c90f69c043de07e0752cfaa02df76cbb3 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #53 from hpaulj/helpformatter

#1 Add additional help formatters

c19fa1322e1b792f12c546b81449c6ca7999c857 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
Add additional help formatters

lib/help/added_formatters.js - HelpFormatter subclasses to
- include defaults in the argument he...

d69956f8d8d4fc267efb230917012b702b12e6bd authored almost 12 years ago by hpaulj <[email protected]>
replaced tmpdir magic with fixtures

63039968bfce30a3985eecc3c387cb4e93825990 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
quickfixed tests to pass under 0.6 node, just for lulz

9109cd395f48d8bb6977cb1fd1d4dfef033cf118 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
ndoc config cleanup

e64186f9c016f3c0dae34d4d987d5da394af1dc7 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
updated test for nargs+append combination

40115ef5db512b0d8dfa8b16627d6b2661415a41 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
replaced most of `sprintf` with more compact `format`

1426b3e3d689a1c8a430009f2ace33e22ec65aca authored almost 12 years ago by Vitaly Puzrin <[email protected]>
added test for #48, remove `skip` when fixed

02df5d8a0d3ee0d4c6e1b919d8decebc24ac0fa9 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
0.1.12 released

691c61ed351756f3ada0e39a1c87315828637058 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #47 from hpaulj/conflictHandler

Conflict handler with 'resolve', issue #46

f2503a34a4b6eca56e6833e9eff854882491e13a authored almost 12 years ago by Vitaly Puzrin <[email protected]>
This closely follows the conflict handler code in argparse.py, implementing

the 'error' and 'resolve' alternatives as ActionContainer functions.

Most of the changes are in ...

2d5ef109083faacd328de619242ed91115eff957 authored almost 12 years ago by hpaulj <[email protected]>
Removed 0.6 node from travis tests

3e474c704d57d075c53ec6cadb69fc9df2106f3a authored almost 12 years ago by Vitaly Puzrin <[email protected]>
0.1.11 released

e5ae0ebe93e836fe88537d730e511aff1dcadcb1 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
updated history/docs

989a1a5046fe73ddbce94d973c7a2b14f9aad3f1 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
fromFile implementation

ab7465bc7986bebff5c65eb607b7ef7bf63738ae authored almost 12 years ago by hpaulj <[email protected]>
history update

5db8a2a5525ceef04b159a0a5d5683ac7804eebb authored almost 12 years ago by Vitaly Puzrin <[email protected]>
code cleanup, related to #40

ccd1df238086ff76371b176ca479a9836c1b4005 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
Restructure tests and add converted from python tests #40

e9ee3a93f33a16bffcfa327f3aac318afef6c9a4 authored almost 12 years ago by shkuropat <[email protected]>
Merge pull request #45 from hpaulj/user_type

Bug in user defined argument type error message

cf4a2e0305e56259dbf09d3f224c6ff65727a6f1 authored almost 12 years ago by shkuropat <[email protected]>
Bug: with a user defined argument type, an error displays

the whole function code, rather than just its name.

Modify the ArgumentParser._getValue() error ...

f94a0de567db24774e03489fa1de9861e9e080d4 authored almost 12 years ago by hpaulj <[email protected]>
Merge pull request #43 from applepicke/master

Conflict Handler

2141d0a712c5009f9d6984933c808a8260195b59 authored almost 12 years ago by shkuropat <[email protected]>
Updated README

d3b145e398fa00b2adab565146c78fc3a8dc7977 authored almost 12 years ago by William Collins <[email protected]>
Added conflictHandler feature.

8a0d63f2129ee6422213b9c364152158d33c59f3 authored almost 12 years ago by William Collins <[email protected]>
Fixed removal bug. Array.remove should be Array.splice

ba66e697bd91f5c2f51b635f6d719181e2926f00 authored almost 12 years ago by William Collins <[email protected]>
Added 'resolve' conflict handler that (as of now) adds your new argument

ef5c954a877e668c7b9a481b26fa3eaaea8c259e authored almost 12 years ago by William Collins <[email protected]>
Added conflictHandler test.

f67f47440f9a1d27ee72746787fa4f6acacfcc1a authored almost 12 years ago by William Collins <[email protected]>
authors -> contributors, and dependencies updates

4c7e90cf8931ae66189b92d7eeb2ad467cf44e1a authored almost 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #42 from hpaulj/corrected_zip

Mismatch between py zip() and _.zip()

403a8bb114da99642eaf491da03df795faa20a50 authored almost 12 years ago by Vitaly Puzrin <[email protected]>
Mismatch between py zip() and _.zip()

In parse_known_args() consume_positionals()
the _.zip(positionals, argCounts)
behaves different ...

93dee3bb602ad0428b2cf08d8767092c796d0b44 authored almost 12 years ago by hpaulj <[email protected]>
partial tests cleanup

e702d5d73d976f4e2cfd8ee3f334ce2769a4575a authored about 12 years ago by Vitaly Puzrin <[email protected]>
updated test report format

20b8c1413d5393746a6835da099861ee718bd907 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #41 from hpaulj/exclusiveUsage

Exclusive usage

a3f6aaf5be9832c98f73f57526cb2427c4f37247 authored about 12 years ago by Vitaly Puzrin <[email protected]>
clean up comments

e2fab7289587550f6ae0133d614fc5d6ab03afc1 authored about 12 years ago by hpaulj <[email protected]>
Corrections to formatter.js to format exclusive groups correctly

testgroups.js - add exclusive group usage tests, based on test_argparse.py

argument_parser.js -...

4c55cfa37a6642baca4054f852b898799939f6d0 authored about 12 years ago by hpaulj <[email protected]>
Merge pull request #38 from hpaulj/namespace

Change Namespace to handle null values as Python does for None

c5520342acb401074f5af840b7b6cd5d5a057bd8 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #37 from hpaulj/positionalAppend

action/append should `push` new values, not `concat`

bbff04f501a7a19f4c9e0cda5ed4d5ebfd525819 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #36 from hpaulj/helperrors

Correct 'help' when argumentDefault and prefixChars options are used

709e9ad66e5832f0b3c8f718c0d0095643538f8d authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #35 from hpaulj/optionalZEROorMORE

Optionals with '*' should accept a defaultValue

af8e4932874d5a24167d1f2e3917bf15740ffb12 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #34 from hpaulj/appendConstDefault

Use of _.indexOf to search a Namespace is wrong

7f9a1877e5c531dd51cad70e66267213a0639fb9 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #33 from hpaulj/testoptionlike

This argparse failed the test_argparse.py TestOptionLike class

7da526829381243731e69cf9f042265cad0b41bd authored about 12 years ago by Vitaly Puzrin <[email protected]>
TestPositionalsNargsOptional adapted from test_argparse.py gives an error

'AssertionError: {} deepEqual {"foo":null}'
A dozen other classes in the py test file give simila...

dbd7da2480add877160b9ce6335ed4bf45d11cb4 authored about 12 years ago by hpaulj <[email protected]>
In test_argparse.py TestPositionalsActionAppend

with 2 positional args, one that takes 1, the other 2,
parseArgs with 'a b c' produces spam: ['a'...

64851ebae7c826df1789405a6fd5a53e55d4a6fa authored about 12 years ago by hpaulj <[email protected]>
argparse.js fails 2 help related tests in test_argparse.py

TestParserDefault42 sets a parser argumentDefault
The error is that the namespace includes {help...

2bee0b9b8faf6b42e1bb0651adb85bb888f892c7 authored about 12 years ago by hpaulj <[email protected]>
JS argparse fails the test_argparse.py test for

TestOptionalsNargsZeroOrMore(ParserTestCase
Tests specifying an args for an Optional that accepts...

c4dc30d0ea0cf17aab6eefeedb966433b5a37263 authored about 12 years ago by hpaulj <[email protected]>
This argparse fails test_argparse.py TestOptionalsActionAppendConstWithDefault class.

This test has two actions with the same 'dest'. The Python test expects
the defaultValue of the ...

c168b0cd7c84115009c8b8d9b529fec7f828fd1b authored about 12 years ago by hpaulj <[email protected]>
This argparse failed the test_argparse.py TestOptionLike class

Args like '-x -2.5 a' are supposed to fail.
The problem is that Python match() starts the match a...

2a6ab2ec5257897345350cd9c67878cb17a0b86a authored about 12 years ago by hpaulj <[email protected]>
0.1.10 released

316538e6d8f6c8839ec16af89f8cdd1f397601a1 authored about 12 years ago by Vitaly Puzrin <[email protected]>
forsed error on unused vars in jshint

20cae47ef1ba11d6d495b2e914df89ab05823bed authored about 12 years ago by Vitaly Puzrin <[email protected]>
Fixed lint warnings

dadf411ef7a3a5f0ed15b99b6c75f9ec453a4b83 authored about 12 years ago by Eugene Shkuropat <[email protected]>
history update

de2beac1b663708d0b010912f6dca0ef5b08541b authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #30 from hpaulj/exclusive

Exclusive

682d1c92a8bd9531cac31befcdd590b827228457 authored about 12 years ago by shkuropat <[email protected]>
Merge pull request #32 from hpaulj/actionconst

Improved options check for storeConst & appendConst, closes #31

2315fee251be3cc126b14e2d50408ecf77882539 authored about 12 years ago by Vitaly Puzrin <[email protected]>
storeConst and appendConst give errors if `constant` is not defined; test in constant.js

5bcb39a67d1f900fd0bbca99aafe5fe8a810056a authored about 12 years ago by hpaulj <[email protected]>
remove nonstandard example and test files

17723c94f3ce59d90ff6ffae9661a39bd31cf0db authored about 12 years ago by hpaulj <[email protected]>
0.1.9 released

114e61f48c26ca700dba64ec0ccdcfd11388f417 authored about 12 years ago by Vitaly Puzrin <[email protected]>
fixed _registryGet default, to don't fool 0, closes #28

75e9d02d33e40d849c234fac882e3ed5cb627947 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Update HISTORY

b261506f677b14c0e19a8e806b6b02b1927eb177 authored about 12 years ago by Aleksey V Zapparov <[email protected]>
Handle option flags like '-1'

Add `_.any()` to test of `self._hasNegativeNumberOptionals`
in action_container._addAction. Whi...

f58d3c84138c08cd866dfeddda63cb5583dee4a8 authored about 12 years ago by hpaulj <[email protected]>
Update HISTORY

5d1d01166fa82bc56d2e3be0aa6f865fd02bd34c authored about 12 years ago by Aleksey V Zapparov <[email protected]>
Small improvement

f79a10b466a9b62c07c119b8c223fb58b556c9a6 authored about 12 years ago by Aleksey V Zapparov <[email protected]>
Correct getDefault()

18df5783c126b79eced994031b9eca9d7ce3a631 authored about 12 years ago by hpaulj <[email protected]>
Update HISTORY

3b8b4abb0f5364d8b770c1f063ee37d813cdddf6 authored about 12 years ago by Aleksey V Zapparov <[email protected]>
ZERO_OR_MORE is always positional

63cab0fcc8396eb0e428b2b119cc8b714fd6e0c9 authored about 12 years ago by Aleksey V Zapparov <[email protected]>
correct handling of default with * nargs

c9421e651c7becbf630cf62f1c57ceff050b6580 authored about 12 years ago by hpaulj <[email protected]>
add 0 defaultValue test to base.js

dc9705bc5888fac973f645b689dc058b77dd5f3c authored about 12 years ago by hpaulj <[email protected]>
correct handling of options.defaultValue:0

908742d51a969425b1cb8a3dd7a5db4565843def authored about 12 years ago by hpaulj <[email protected]>
Correct handling of groups that are passed from a parent parser to child.

As in ArgumentParser, use actionHash(action) as a groupMap key
in ActionContainer._addContainerA...

c22136e211a08a3330b68ec3b9d3a9dd7f26b7a2 authored about 12 years ago by hpaulj <[email protected]>
generalize testgroup error matching

lint fix

d640a299c2fa5271abe55ab361958efce58962cd authored about 12 years ago by hpaulj <[email protected]>
minor cleanup

24a671478ff22e48255412d993fa8a2877703420 authored about 12 years ago by hpaulj <[email protected]>
implement Mutually Exclusive Groups

passes lint, test/testgroup.js and runs test/group.coffee
group.coffee tests group and exclusive ...

c55683c13df938cb0067670cca39eab99a18bce3 authored about 12 years ago by hpaulj <[email protected]>
typo fixes

4f711cf55532f131a27a168a5a1d335f9c791861 authored about 12 years ago by Vitaly Puzrin <[email protected]>
fixed lint warnings

9a63976894bf10167bb9cfe33dce5626162db348 authored about 12 years ago by Vitaly Puzrin <[email protected]>
readme update

2595f40e2f8758f1920738ce3aa42fd7048f926a authored about 12 years ago by Vitaly Puzrin <[email protected]>
moved code from example to test, related to #23

84e86fa86443374f9d4d77254e20bb6741da8ede authored about 12 years ago by Vitaly Puzrin <[email protected]>
fixes lint & comments for #23

40183eced0ec4495342f9cfea7d81f875dad7242 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #23 from hpaulj/short_dest

Correction to inferring action.dest from option strings

767f0e0e0cb8a428791d07ee58aa3847facf75ef authored about 12 years ago by Vitaly Puzrin <[email protected]>
Correction to inferring action.dest from option strings

In the absence of a long option it failed to infer the dest from the short one.
examples/short_de...

91785779f7acdb3b0a904005ac69e39b0283e6b5 authored about 12 years ago by hpaulj <[email protected]>
0.1.8 released

e6949c1e92b575b397039a1297d57ef8a8870105 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Merge pull request #21 from shkuropat/master

Fixed #19 and #20 issues

f3e1f111ce627cc942d7078529192d38757c1ff1 authored about 12 years ago by Vitaly Puzrin <[email protected]>
Update HISTORY

dc6ffc344e9fd8761547b233db6cdb0b239bb280 authored about 12 years ago by Eugene Shkuropat <[email protected]>
Add sum example

04c00515cc8dd6afa9835aba1edfd1a98306a6fc authored about 12 years ago by Eugene Shkuropat <[email protected]>
Add test for negative argement parsing

f5fd1e8481981ba65de8da7ad59633929c7d541b authored about 12 years ago by Eugene Shkuropat <[email protected]>
Fixed negative argument parse

f902dfc684a6943022733f06683425aff7656398 authored about 12 years ago by Eugene Shkuropat <[email protected]>
Add parser parents tests

3c044516c830bd867c598d806192454cc1f2c820 authored about 12 years ago by Eugene Shkuropat <[email protected]>
Fixed lint errors

3d5d90bc84472cf12c4175ff8546f83a47ae278d authored about 12 years ago by Eugene Shkuropat <[email protected]>
Fixed parser parents #19

495e95f11def61f83f5d6420a3d51de45b244b49 authored about 12 years ago by Eugene Shkuropat <[email protected]>
Add parents usage example

730cc8dbe20f10c4e485b2ce3643aad7be6940e0 authored about 12 years ago by Eugene Shkuropat <[email protected]>
Merge pull request #18 from Olegas/master

Fix incorrect 'storeConstant' action name in docs

0307cbe14184f810da2b20702fef2639d503fecf authored about 12 years ago by Vitaly Puzrin <[email protected]>
Fixed incorrect action name in docs. storeConstant -> storeConst

b073471821e20def17bcefa10c8e55f31d70df92 authored about 12 years ago by Olegas <[email protected]>
0.1.7 released

bfe2ca648abbda33dd507423d0e7aa8f3e425d9b authored about 12 years ago by Vitaly Puzrin <[email protected]>
Update history

5dd6e4908e08ab950ae86de5765c25b7672010ad authored about 12 years ago by Eugene Shkuropat <[email protected]>
Fixed choices arguments #16

8589be4a554a3f35244252610fbba0c541d815cf authored about 12 years ago by Eugene Shkuropat <[email protected]>
Fixed lint errors after jshint update

35610ebf2d054fe7452691bfcd1ad72b8dcffcfd authored about 12 years ago by Eugene Shkuropat <[email protected]>
Fixed stderr output #15

c3e3555b67623f9ab00475d40e1400cef7110d60 authored about 12 years ago by Eugene Shkuropat <[email protected]>
0.1.6 released

f54b5fe2dd48625cde7669521414b0b67dc8deba authored over 12 years ago by Vitaly Puzrin <[email protected]>
Update history

1dddf5382c42dbfab1c7951028ec44110ef7c23c authored over 12 years ago by Eugene Shkuropat <[email protected]>
Merge pull request #13 from tomxtobin/fix-checkconflict

Fix ActionContainer#_checkConflict and add test

d3363abb9f19019adadf1c72d07a0173d73ab742 authored over 12 years ago by shkuropat <[email protected]>