Permalink
Browse files

changing argument catcher location

  • Loading branch information...
pedronasser committed Dec 10, 2012
1 parent a49a965 commit 86bf34bfaec13c15d19bb4fba9e5e275a6084b5a
Showing with 8 additions and 7 deletions.
  1. +8 −1 bin/wns
  2. +0 −6 source/core/base/wnConsole.js
View
@@ -1,4 +1,11 @@
#!/usr/bin/env node
sourcePath = '../source/';
-require('../source/wnInit');
+require(sourcePath+'/wnInit');
+
+if (process.argv.length>2)
+{
+ var cmd = process.argv.slice(2).join(' ');
+ wns.console.run(cmd);
+ process.exit();
+}
@@ -68,12 +68,6 @@ module.exports = {
{
this.setConfig({ id: '*' });
this.e.log('Initializing wnConsole...');
- if (process.argv.length>2)
- {
- var cmd = process.argv.slice(2).join(' ');
- this.run(cmd);
- process.exit();
- }
this.listenInput();
process.on('uncaughtException', function (e) { console.log(e.stack); });
},

0 comments on commit 86bf34b

Please sign in to comment.