mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(bin) add --noserver
This commit is contained in:
parent
194796432b
commit
b716e390e1
3 changed files with 9 additions and 9 deletions
4
HELP.md
4
HELP.md
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue