From adc9eb5b09979945355e560ebd8fb604488e99f3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 7 Nov 2016 20:03:55 +0200 Subject: [PATCH] chore(cloudcmd) add " " --- bin/cloudcmd.js | 118 ++++++++++++++++++++++++------------------------ 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index 65d97e48..4f517e75 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -7,65 +7,65 @@ var Info = require('../package'), DIR_LIB = DIR + 'lib/', DIR_SERVER = DIR_LIB + 'server/', -exit = require(DIR_SERVER + 'exit'), -config = require(DIR_SERVER + 'config'), - -options, -argv = process.argv, - -args = require('minimist')(argv.slice(2), { - string: [ - 'port', - 'password', - 'username', - 'config', - 'editor', - 'root', - 'prefix' - ], - boolean: [ - 'auth', - 'repl', - 'save', - 'server', - 'online', - 'open', - 'minify', - 'progress', - 'progress-of-copying', - 'html-dialogs', - 'one-panel-mode' - ], - default: { - server : true, - auth : config('auth'), - port : config('port'), - minify : config('minify'), - online : config('online'), - open : config('open'), - editor : config('editor') || 'edward', - username : config('username'), - root : config('root') || '/', - prefix : config('prefix') || '', - progress : config('progress') || config('progressOfCopying'), - - 'html-dialogs' : config('htmlDialogs'), - 'one-panel-mode': config('onePanelMode'), - }, - alias: { - v: 'version', - h: 'help', - p: 'password', - o: 'online', - u: 'username', - s: 'save', - a: 'auth', - c: 'config' - }, - unknown: function(cmd) { - exit('\'%s\' is not a cloudcmd option. See \'cloudcmd --help\'.', cmd); - } -}); + exit = require(DIR_SERVER + 'exit'), + config = require(DIR_SERVER + 'config'), + + options, + argv = process.argv, + + args = require('minimist')(argv.slice(2), { + string: [ + 'port', + 'password', + 'username', + 'config', + 'editor', + 'root', + 'prefix' + ], + boolean: [ + 'auth', + 'repl', + 'save', + 'server', + 'online', + 'open', + 'minify', + 'progress', + 'progress-of-copying', + 'html-dialogs', + 'one-panel-mode' + ], + default: { + server : true, + auth : config('auth'), + port : config('port'), + minify : config('minify'), + online : config('online'), + open : config('open'), + editor : config('editor') || 'edward', + username : config('username'), + root : config('root') || '/', + prefix : config('prefix') || '', + progress : config('progress') || config('progressOfCopying'), + + 'html-dialogs' : config('htmlDialogs'), + 'one-panel-mode': config('onePanelMode'), + }, + alias: { + v: 'version', + h: 'help', + p: 'password', + o: 'online', + u: 'username', + s: 'save', + a: 'auth', + c: 'config' + }, + unknown: function(cmd) { + exit('\'%s\' is not a cloudcmd option. See \'cloudcmd --help\'.', cmd); + } + }); if (args.version) { version();