refactor(cloudcmd) rm username

This commit is contained in:
coderaiser 2015-03-28 11:22:28 -04:00
parent 2beeb3b7e9
commit b27c9c589a

View file

@ -30,10 +30,11 @@
'repl',
'save'],
default: {
'auth' : config('auth'),
'port' : config('port'),
'online': config('online'),
'server': true
server : true,
auth : config('auth'),
port : config('port'),
online : config('online'),
username : config('username'),
},
alias: {
v: 'version',
@ -54,12 +55,12 @@
if (args.repl)
repl();
password(args.password);
username(args.username);
port(args.port);
password(args.password);
config('auth', args.auth);
config('online', args.online);
config('username', args.username);
if (args.save)
config.save(start);
@ -89,11 +90,6 @@
}
}
function username(name) {
if (name)
config('username', name);
}
function port(arg) {
var number = parseInt(arg, 10);