1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-08-15 21:44:51 +02:00

Update cordova, mixpanel, minimist, etc.

This commit is contained in:
Rico Sta. Cruz
2014-09-05 16:50:56 +08:00
parent bd4ab84883
commit b123a1bada
5 changed files with 169 additions and 41 deletions

View File

@@ -19,10 +19,13 @@ args == {
```
```js
if (args.help) {
if (args.help || args._.length === 0) {
var cmd = require('path').basename(process.argv[1]);
console.log(require('fs').readFileSync(__dirname+'/../help.txt','utf-8').replace(/\$0/g, cmd));
].join('\n'));
console.log(
require('fs')
.readFileSync(__dirname+'/../help.txt','utf-8')
.replace(/\$0/g, cmd)
.trim());
process.exit();
}
@@ -36,11 +39,11 @@ if (args.version) {
```
Usage:
$0 FILES [options]
$0 FILES [options]
Options:
-h, --help print usage information
-V, --version show version info and exit
-v, --version show version info and exit
```
### Reference