Permalink
Browse files

type(Boolean) -> flag() in example

  • Loading branch information...
1 parent a08b25d commit 1a683caefcb3e49cb54ebe5a047123ee4504637d @arikon arikon committed Sep 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -16,7 +16,7 @@ require('coa').Cmd() // main (top level) command declaration
.title('Version') // title for use in text messages
.short('v') // short key: -v
.long('version') // long key: --version
- .type(Boolean) // type Boolean for options without value
+ .flag() // for options without value
.act(function(opts) { // add action for option
this.exit( // exit program with code 0 and text message
JSON.parse(require('fs').readFileSync(__dirname + '/package.json'))

0 comments on commit 1a683ca

Please sign in to comment.