James Halliday
fef6ae79c3
fix list
2014-08-10 18:07:51 -07:00
Jason Diamond
471c7e4a7e
added stopEarly option
2014-08-10 18:07:13 -07:00
James Halliday
f904dcc3c2
0.2.0
2014-06-19 22:56:34 +08:00
Max Ogden
450a97f6e2
support all-boolean mode
2014-06-19 22:56:19 +08:00
James Halliday
1f976263c6
0.1.0
2014-05-12 03:23:02 +02:00
James Halliday
14db0e6dbc
documented argv['--']
2014-05-12 03:22:31 +02:00
ELLIOTTCABLE
715c1e3714
Adding a test-case for notFlags segregation
2014-05-12 03:16:28 +02:00
ELLIOTTCABLE
ce4a1e63a7
Provide a mechanism to segregate -- arguments
2014-05-12 03:16:27 +02:00
James Halliday
f69fd1932f
0.0.10
2014-05-11 23:42:47 +02:00
James Halliday
46e448f9f5
dedicated boolean test
2014-05-11 23:42:27 +02:00
James Halliday
b2bb044365
cover the case of already numbers, at 100% coverage
2014-05-11 23:40:29 +02:00
James Halliday
9bf2d36f1d
dedicated num test
2014-05-11 23:39:27 +02:00
James Halliday
3662624be9
another test for higher coverage
2014-05-11 23:37:56 +02:00
Trevor Senior
1ab743bad4
aliased values treated as strings
2014-05-11 23:34:19 +02:00
James Halliday
f0d143e872
0.0.9
2014-05-08 07:56:06 -07:00
Francis
824f642038
Eliminate `longest` fn.
...
Pull request removes `longest` since it is not used anywhere within `index.js`.
2014-05-08 07:55:50 -07:00
James Halliday
3754568bfd
0.0.8
2014-02-20 20:46:13 -08:00
Trevor Senior
66c248f024
handle joined single letters
2014-02-20 20:46:01 -08:00
Trevor Senior
fa63ed4651
return '' if flag is string and empty
2014-02-20 20:46:01 -08:00
James Halliday
cd46bf93a0
0.0.7
2014-02-08 20:03:38 -08:00
James Halliday
d1da40819a
another swap of .test for .match
2014-02-08 20:03:32 -08:00
James Halliday
8ef0bdf774
0.0.6
2014-02-08 19:48:55 -08:00
James Halliday
7e0d1add8c
use .test() instead of .match() to not crash on non-string values in the arguments array
2014-02-08 19:48:30 -08:00
James Halliday
ec2dc82995
0.0.5
2013-09-18 23:44:33 -07:00
m1kc (Max Musatov)
b11822c09c
Improve '--' handling.
...
If there are a double dash in the `args`, we can just throw away
following arguments and push them directly to `argv._`. This allows us
to remove any checks for `--` from the following code therefore making
it more mistake-proof.
These arguments are stored in a temporary array and pushed after
processing the rest - to ensure argument order won't change.
2013-09-18 23:43:19 -07:00
James Halliday
545b9a6d6d
0.0.3
2013-09-12 16:34:13 +01:00
James Halliday
6a095f1d36
fix for the dot test
2013-09-12 16:34:02 +01:00
James Halliday
b465514b82
failing test for single dash preceeding a double dash
2013-09-12 16:11:07 +01:00
James Halliday
f117e6d6cc
0.0.2
2013-08-28 16:00:00 -07:00
Stephane Le Cornec
321c33e755
allow dotted aliases & defaults
2013-08-28 15:57:59 -07:00
James Halliday
e40f61114c
use a better version of ff
2013-06-25 01:28:20 -07:00
James Halliday
6ff0fa0550
remove trailing commas
2013-06-25 01:21:27 -07:00
James Halliday
84c0370636
badges
2013-06-25 01:16:39 -07:00
James Halliday
a5bf46ac9b
docs, package.json
2013-06-25 01:13:41 -07:00
James Halliday
1b9f5db474
default bool test was wrong, not the code
2013-06-25 00:58:08 -07:00
James Halliday
6b034f37c7
fixed the numeric test
2013-06-25 00:35:58 -07:00
James Halliday
64239edfe9
all the tests now ported, some failures
2013-06-25 00:30:05 -07:00
James Halliday
944875452e
ported parse tests completely over
2013-06-25 00:28:17 -07:00
James Halliday
3079326013
half of the parse test ported
2013-06-25 00:05:18 -07:00
James Halliday
503edb5c41
move more short tests into short.js
2013-06-24 23:59:55 -07:00
James Halliday
7972c4aff1
passing long tests ripped out of parse.js
2013-06-24 23:52:36 -07:00
James Halliday
f8a534112d
failing short test
2013-06-24 23:34:41 -07:00
James Halliday
7cced88d82
stripped down code and a passing test from optimist
2013-06-24 23:30:03 -07:00