feature(cloudcmd) --name: add ability to set tab name in web browser

This commit is contained in:
coderaiser 2017-07-26 16:57:33 +03:00
parent 9ef0dd02dd
commit 9cdca9efe5
12 changed files with 93 additions and 20 deletions

View file

@ -19,6 +19,7 @@ const choose = (a, b) => {
const argv = process.argv;
const args = require('minimist')(argv.slice(2), {
string: [
'name',
'port',
'password',
'username',
@ -46,6 +47,7 @@ const args = require('minimist')(argv.slice(2), {
],
default: {
server : true,
name : env('name') || config('name'),
auth : choose(env('auth'), config('auth')),
port : config('port'),
online : config('online'),
@ -95,6 +97,7 @@ function main() {
port(args.port);
config('name', args.name);
config('auth', args.auth);
config('online', args.online);
config('open', args.open);