Permalink
Browse files

Avoid error when requiring flags from repl

  • Loading branch information...
dpup committed Apr 4, 2011
1 parent a4ad366 commit 0ea7801a009887b63d4a56575d79eeafbb5f22a0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/flags.js
View
@@ -28,7 +28,7 @@ exports.exitOnError = true;
* @type {string}
*/
exports.usageInfo = 'Usage: node ' +
- process.argv[1].split('/').pop() + ' [options]';
+ (process.argv[1] || '').split('/').pop() + ' [options]';
/**

0 comments on commit 0ea7801

Please sign in to comment.