feature(bin) add --noserver

This commit is contained in:
coderaiser 2015-03-25 04:09:12 -04:00
parent 194796432b
commit b716e390e1
3 changed files with 9 additions and 9 deletions

View file

@ -64,11 +64,11 @@ Cloud Commander supports command line parameters:
| `-on, --online` | load scripts from remote servers
| `-off, --offline` | load scripts from local server
| `-a, --auth` | enable authorization
| `-na, --no-auth` | disable authorization
| `-na, --noauth` | disable authorization
| `-p, --port` | set port number
| `-u, --username` | set username
| `-ps, --password` | set password
| `-ns, --no-server` | do not start server
| `-ns, --noserver` | do not start server
If no parameters given Cloud Commander reads information from `~/.cloudcmd.json` and use
port from it (`8000` default). if port variables `PORT` or `VCAP_APP_PORT` isn't exist.

View file

@ -25,9 +25,9 @@
'offline',
],
boolean: [
'no-server',
'auth',
'no-auth',
'noauth',
'noserver',
'repl',
'save'],
alias: {
@ -40,8 +40,8 @@
ps: 'password',
s: 'save',
a: 'auth',
na: 'no-auth',
ns: 'no-server'
na: 'noauth',
ns: 'noserver'
}
});
@ -82,7 +82,7 @@
function start(config) {
var SERVER = '../lib/server';
if (!args['no-server'])
if (!args.noserver)
require(SERVER)(config);
}

View file

@ -5,9 +5,9 @@
"-on, --online " : "load scripts from remote servers",
"-off, --offline" : "load scripts from local server",
"-a, --auth " : "enable authorization",
"-na, --no-auth " : "disable authorization",
"-na, --noauth " : "disable authorization",
"-p, --port " : "set port number",
"-u, --username " : "set username",
"-ps, --password" : "set password",
"-ns, --no-server" : "do not start server"
"-ns, --noserver" : "do not start server"
}