Permalink
Browse files

Fix bug related to cli.version, re #30

  • Loading branch information...
1 parent bb93dc2 commit d8370c5aabebef734b46a582bf1998725696bca2 @chriso chriso committed Apr 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 cli.js
  2. +1 −1 package.json
View
@@ -331,7 +331,7 @@ cli.parse = function (opts, command_def) {
cli.getUsage();
process.exit();
} else if (enable.version && (o === 'v' || o === 'version')) {
- if (typeof cli.version === 'undefined') {
+ if (cli.version == null) {
cli.parsePackageJson();
}
console.error(cli.app + ' v' + cli.version);
View
@@ -1,6 +1,6 @@
{ "name" : "cli",
"description" : "A tool for rapidly building command line apps",
- "version" : "0.4.2",
+ "version" : "0.4.3",
"homepage" : "http://github.com/chriso/cli",
"keywords" : ["cli","command line","opts","parseopt","opt","args","console","argsparse","optparse","daemon","autocomplete","command","autocompletion"],
"author" : "Chris O'Hara <cohara87@gmail.com>",

0 comments on commit d8370c5

Please sign in to comment.