Add more stuff.
This commit is contained in:
parent
e07b88d02c
commit
c03d0b74e3
|
@ -23,8 +23,6 @@ Here are some badges for open source projects.
|
||||||
|
|
||||||
[](https://travis-ci.org/rstacruz/ento)
|
[](https://travis-ci.org/rstacruz/ento)
|
||||||
|
|
||||||
[](https://travis-ci.org/USER/REPO)
|
|
||||||
|
|
||||||
### Versions
|
### Versions
|
||||||
|
|
||||||
[](https://npmjs.org/package/jquery "View this project on npm")
|
[](https://npmjs.org/package/jquery "View this project on npm")
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
title: minimist
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
```js
|
||||||
|
var args = require('minimist')(process.argv.slice(2), {
|
||||||
|
string: 'lang',
|
||||||
|
boolean: 'pager',
|
||||||
|
alias: { h: 'help', v: 'version' }
|
||||||
|
});
|
||||||
|
|
||||||
|
// --lang xml --no-pager -h index.js package.json
|
||||||
|
args == {
|
||||||
|
lang: 'xml', pager: false,
|
||||||
|
h: true, help: true,
|
||||||
|
_: [ 'index.js', 'package.json' ]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Reference
|
||||||
|
|
||||||
|
* https://www.npmjs.org/package/minimist
|
||||||
|
* https://github.com/substack/minimist
|
Loading…
Reference in New Issue