Skip to content
Myr

Added .usage() example in docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 4f0c67f · Browse files · 2 files+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−0 removed

  • other:+2 added−0 removed

2 files+2 added−0 removed

modified:examples/coercion+1 added
14 unmodified lines
15}1617program18 .version('0.0.1')19 .usage('test')20 .option('-i, --integer <n>', 'An integer argument', parseInt)21 .option('-f, --float <n>', 'A float argument', parseFloat)22 .option('-r, --range <a>..<b>', 'A range', range)23 .option('-l, --list <items>', 'A list', list)
10 unmodified lines
modified:Readme.md+1 added
68 unmodified lines
69}7071program72 .version('0.0.1')73 .usage('[options] <file ...>')74 .option('-i, --integer <n>', 'An integer argument', parseInt)75 .option('-f, --float <n>', 'A float argument', parseFloat)76 .option('-r, --range <a>..<b>', 'A range', range)77 .option('-l, --list <items>', 'A list', list)
184 unmodified lines