Skip to content

Commit

Permalink
Fix bug related to cli.version, re #30
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Apr 29, 2012
1 parent bb93dc2 commit d8370c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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>",
Expand Down

0 comments on commit d8370c5

Please sign in to comment.