From b27c9c589aa0cedc873128d7b718f85db757fd55 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sat, 28 Mar 2015 11:22:28 -0400 Subject: [PATCH] refactor(cloudcmd) rm username --- bin/cloudcmd.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index 82e8fff5..fbec8b07 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -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);