-
Notifications
You must be signed in to change notification settings - Fork 7
/
CHANGES
135 lines (109 loc) · 4.21 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
v1.0.4 (31 Mar 2014)
Fixed "text()" function with an empty string.
v1.0.3 (19 Feb 2014)
Bump version.
v1.0.2 (17 Feb 2014)
Added an "options" paramter to "readPackage()". The email, description and
version found in the package.json can be ignored individually.
v1.0.1 (21 Dec 2013)
"printHelp()", "printUsage()" and "printVersion()" now exits correctly by
default with code 0.
When "argv()" is called with an input array, "printHelp()", "printUsage()" and
"printVersion()" don't terminate the process.
v1.0.0 (02 Dec 2013)
Added support for multiple parsers. Now the parser is created using
"createParser()".
In previous versions, passing an array to "argv()" didn't uncache the module
in order to reuse the parser. Now if you don't need to reuse it, pass an
object { once: true } to "createParser()".
Added an "error" event.
Added "footer()". Now you can write text between the --version and email text
lines when using the "readPackage()" function.
When "argv()" was called with an input array from inside a Body or Command
instance, the input array was not read.
Removed the second parameter from the "end" event. Now the functions
"printHelp()", "printUsage()" and "printVersion()" are accessible from the
Argp instance.
Minor bugfixes and improvements.
v0.2.1 (25 Nov 2013)
The "fail()" function from the "end" event now prints the string message
correctly.
v0.2.0 (25 Nov 2013)
The "end" event now receives a second parameter with an object with the
previous functions "printHelp()", "printUsage()", "printVersion()" and
"fail()".
Improved README.
Added Travis integration.
Some bugfixes.
v0.1.3 (25 Oct 2013)
Added a fifth parameter ("fail") to the "end" event.
Minor improvements and bugfixes.
v0.1.2 (04 Oct 2013)
Minor speed improvements and bugfixes.
v0.1.1 (30 Sep 2013)
An array with options can be passed to "argv()".
v0.1.0 (29 Sep 2013)
Bump version.
v0.0.16 (28 Sep 2013)
Added a new parameter to "help()" and "version()" to disable the short option.
Added "exitStatus()".
v0.0.15 (27 Sep 2013)
Renamed "help" to "synopsis", property of "argument()".
Renamed "argument" to "metavar", property of "option()".
Minor improvements.
v0.0.14 (26 Sep 2013)
Added "command()", "main()" and "argv()" to the Body instance.
Removed "end()".
v0.0.13 (26 Sep 2013)
Removed "line()", "paragraph()", "group()".
Added "text()".
v0.0.12 (26 Sep 2013)
Minor bugfixes.
v0.0.11 (25 Sep 2013)
Added commands ("trailing" and "help" properties to "argument()").
The "end" event now receives 3 new parameters: "printHelp()", "printUsage()"
and "printVersion()".
Removed "_debug" and "_filename" properties from the final object.
Minor improvements.
v0.0.10 (23 Sep 2013)
The default value of an option is now set with "default" instead of "value".
Code inside the "end" event was preventing the parser from being gc'ed.
Allowed negated flags with a short name.
Added aliases.
Added choices.
Improved --usage message.
Minor improvements.
v0.0.9 (20 Sep 2013)
Added "columns()".
Minor bugfixes.
v0.0.8 (19 Sep 2013)
Fixed "readPackage()" with a missing default file.
Added "prefix" parameter to the "text()" function.
"usages()" now replaces the whole "usage" string.
Added "line()" function. It differs from "text()" in that it isn't a new
paragraph.
Renamed "text()" to "paragraph()".
Added "filter" parameter to "options()".
Minor improvements.
v0.0.7 (18 Sep 2013)
The api has been refactored to be more fluent.
Some bugfixes.
v0.0.6 (16 Sep 2013)
Options with a negative Number value are parsed correctly.
The "argument()" function has been moved from the Argp to the Body and now
accepts a second configuration parameter.
v0.0.5 (15 Sep 2013)
Added a "type" setting to the option configuration.
v0.0.4 (15 Sep 2013)
Added "footer()".
The "fail()" function now prints the "try" message.
v0.0.3 (15 Sep 2013)
An 80 columns length was hardcoded.
v0.0.2 (14 Sep 2013)
Added automatic string conversion.
Added "hidden" option configuration.
When the input is parsed the first time "argv()" frees any resource; only
the final object is needed.
Minor bugfixes.
v0.0.1 (13 Sep 2013)
First release.