diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index cf45114d..0cc311cf 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -62,7 +62,7 @@ config('auth', args.auth); config('online', args.online); config('username', args.username); - config('root', args.root); + root(args.root) readConfig(args.config); @@ -138,6 +138,13 @@ console.log('\nGeneral help using Cloud Commander: <%s>', url); } + function root(dir) { + if (dir) { + config('root', dir); + console.log('root:', dir); + } + } + function repl() { console.log('REPL mode enabled (telnet localhost 1337)'); require(DIR_LIB + '/server/repl');