Skip to content

Commit

Permalink
changing argument catcher location
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronasser committed Dec 10, 2012
1 parent a49a965 commit 86bf34b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 8 additions & 1 deletion bin/wns
@@ -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();
}
6 changes: 0 additions & 6 deletions source/core/base/wnConsole.js
Expand Up @@ -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); });
},
Expand Down

0 comments on commit 86bf34b

Please sign in to comment.