Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
Corrected unstartable CLI.
Browse files Browse the repository at this point in the history
Bug introduced in e420c71.
  • Loading branch information
MattiSG committed Aug 1, 2012
1 parent e9b3207 commit 19573b8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/index.js
Expand Up @@ -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);
Expand All @@ -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.
*
Expand Down

0 comments on commit 19573b8

Please sign in to comment.