Skip to content
Myr

fixes #7 - docs patch

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

authored by Cal Leeming · committed by zhiyelee · parent 2051ab0 · Browse files · 1 file+19 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

1 file+19 added−0 removed

  • other:+19 added−0 removed

1 file+19 added−0 removed

modified:Readme.md+19 added
156 unmodified lines
157 -C, --no-cheese You do not want any cheese158159```160161## Help by default162163If you want to display help by default (e.g. if no command was provided), you can use something like;164165```166167var program = require('commander');168169program170 .version('0.0.1')171 .command('getstream [url]', 'get stream URL')172 .parse(process.argv);173174 if (!process.argv.slice(2).length) {175 program.outputHelp();176 return;177 }178```179180## Custom help181182 You can display arbitrary `-h, --help` information183 by listening for "--help". Commander will automatically
136 unmodified lines