Permalink
Browse files

Corrected unstartable CLI.

Bug introduced in e420c71.
  • Loading branch information...
1 parent e9b3207 commit 19573b8a6468a54f4f7e35bcf0200ddd6ef4a522 @MattiSG committed Aug 1, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/index.js
View
@@ -2,6 +2,12 @@
*/
var args = process.argv.slice(2); // extract CLI arguments, see http://docs.nodejitsu.com/articles/command-line/how-to-parse-command-line-arguments
+
+/** Absolute path to the main library file.
+*/
+var MAIN_FILE = exports.MAIN_FILE = require('path').join(__dirname, 'TestRight.js');
+
+
if (args.length == 0) {
showHelp();
process.exit(2);
@@ -21,11 +27,6 @@ if (args.length == 0) {
main(args);
}
-
-/** Absolute path to the main library file.
-*/
-var MAIN_FILE = exports.MAIN_FILE = require('path').join(__dirname, 'TestRight.js');
-
/** The CLI takes paths to test description folders as arguments.
* Any number of paths may be given.
*

0 comments on commit 19573b8

Please sign in to comment.