Browse files

Fixed bug

  • Loading branch information...
1 parent 3098bdb commit f1b9aa2d9824ae890bd0747df89fb711b27e4a9c @chriso chriso committed May 14, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 cli.js
  2. +1 −1 package.json
View
2 cli.js
@@ -152,7 +152,7 @@ cli.setArgv = function (argv, keep_arg0) {
cli.app = argv.shift();
//Strip off argv[0] if it's 'node'
if (!keep_arg0 && 'node' === cli.native.path.basename(cli.app)) {
- cli.app = arr.shift();
+ cli.app = argv.shift();
}
cli.app = cli.native.path.basename(cli.app);
argv_parsed = false;
View
2 package.json
@@ -1,6 +1,6 @@
{ "name" : "cli",
"description" : "A tool for rapidly building command line apps",
- "version" : "0.2.9",
+ "version" : "0.3.0",
"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 f1b9aa2

Please sign in to comment.