diff --git a/HELP.md b/HELP.md index 07e9692b..9d436a1e 100644 --- a/HELP.md +++ b/HELP.md @@ -70,6 +70,8 @@ Cloud Commander supports command line parameters: | `--no-auth` | disable authorization | `--no-server` | do not start server | `--no-online` | load scripts from local server +| `--minify` | enable minification +| `--no-minify` | disable minification 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. diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index 3d254060..fe470565 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -28,12 +28,14 @@ 'repl', 'save', 'server', - 'online' + 'online', + 'minify' ], default: { server : true, auth : config('auth'), port : config('port'), + minify : config('minify'), online : config('online'), username : config('username'), }, @@ -65,6 +67,7 @@ config('auth', args.auth); config('online', args.online); + config('minify', args.minify); config('username', args.username); root(args.root); diff --git a/json/bin.json b/json/bin.json index a24284d6..78f526d6 100644 --- a/json/bin.json +++ b/json/bin.json @@ -11,5 +11,7 @@ "--port " : "set port number", "--no-auth " : "disable authorization", "--no-server " : "do not start server", - "--no-online " : "load scripts from local server" + "--no-online " : "load scripts from local server", + "--minify " : "enable minification", + "--no-minify " : "disable minification" }