0.1.0 • Published 11 years ago
yargs-dashed v0.1.0
yargs-dashed

Wrapper around yargs that allows passing options in the dashed style as in head -10 file.txt (non-standard).
API
In addition to the yargs':
.dashed(name)
Registers option name as a dashed option.
The dashed option is the one that satisfies the following constraints:
- it comes first in the list;
- it starts with a dash;
- other than that, it consists solely of digits and uppercase.
Such options are rewritten in a conforming way (head -1 file.txt -> head --depth 1 file.txt).
Note that only one such option can be recognized and it must be the first.
Install
npm install yargs-dashedLicense
MIT
0.1.0
11 years ago
