commander 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/History.md +23 -0
- package/Readme.md +14 -0
- package/index.js +1151 -1
- package/package.json +2 -2
- package/.npmignore +0 -4
- package/.travis.yml +0 -4
- package/Makefile +0 -7
- package/lib/commander.js +0 -1053
package/History.md
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
|
|
2
|
+
1.2.0 / 2013-06-13
|
|
3
|
+
==================
|
|
4
|
+
|
|
5
|
+
* allow "-" hyphen as an option argument
|
|
6
|
+
* support for RegExp coercion
|
|
7
|
+
|
|
8
|
+
1.1.1 / 2012-11-20
|
|
9
|
+
==================
|
|
10
|
+
|
|
11
|
+
* add more sub-command padding
|
|
12
|
+
* fix .usage() when args are present. Closes #106
|
|
13
|
+
|
|
14
|
+
1.1.0 / 2012-11-16
|
|
15
|
+
==================
|
|
16
|
+
|
|
17
|
+
* add git-style executable subcommand support. Closes #94
|
|
18
|
+
|
|
19
|
+
1.0.5 / 2012-10-09
|
|
20
|
+
==================
|
|
21
|
+
|
|
22
|
+
* fix `--name` clobbering. Closes #92
|
|
23
|
+
* fix examples/help. Closes #89
|
|
24
|
+
|
|
2
25
|
1.0.4 / 2012-09-03
|
|
3
26
|
==================
|
|
4
27
|
|
package/Readme.md
CHANGED
|
@@ -185,6 +185,12 @@ program.prompt('Birthdate: ', Date, function(date){
|
|
|
185
185
|
});
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
+
```js
|
|
189
|
+
program.prompt('Email: ', /^.+@.+\..+$/, function(email){
|
|
190
|
+
console.log('email: %j', email);
|
|
191
|
+
});
|
|
192
|
+
```
|
|
193
|
+
|
|
188
194
|
## .password(msg[, mask], fn)
|
|
189
195
|
|
|
190
196
|
Prompt for password without echoing:
|
|
@@ -228,6 +234,14 @@ program.choose(list, function(i){
|
|
|
228
234
|
});
|
|
229
235
|
```
|
|
230
236
|
|
|
237
|
+
## .outputHelp()
|
|
238
|
+
|
|
239
|
+
Output help information without exiting.
|
|
240
|
+
|
|
241
|
+
## .help()
|
|
242
|
+
|
|
243
|
+
Output help information and exit immediately.
|
|
244
|
+
|
|
231
245
|
## Links
|
|
232
246
|
|
|
233
247
|
- [API documentation](http://visionmedia.github.com/commander.js/)
|