diff --git a/HELP.md b/HELP.md index 8850cb15..e2a7017a 100644 --- a/HELP.md +++ b/HELP.md @@ -56,23 +56,25 @@ cloudcmd Cloud Commander supports command line parameters: |Parameter |Operation -|:----------------------|:-------------------------------------------- -| `-h, --help` | display help and exit -| `-v, --version` | display version and exit -| `-s, --save` | save configuration -| `-o, --online` | load scripts from remote servers -| `-a, --auth` | enable authorization -| `-u, --username` | set username -| `-p, --password` | set password -| `-c, --config` | configuration file path -| `--editor` | set editor: "dword" or "edward" -| `--root` | set root directory -| `--port` | set port number -| `--no-auth` | disable authorization -| `--no-server` | do not start server -| `--no-online` | load scripts from local server -| `--minify` | enable minification -| `--no-minify` | disable minification +|:--------------------------|:-------------------------------------------- +| `-h, --help` | display help and exit +| `-v, --version` | display version and exit +| `-s, --save` | save configuration +| `-o, --online` | load scripts from remote servers +| `-a, --auth` | enable authorization +| `-u, --username` | set username +| `-p, --password` | set password +| `-c, --config` | configuration file path +| `--editor` | set editor: "dword" or "edward" +| `--root` | set root directory +| `--port` | set port number +| `--no-auth` | disable authorization +| `--no-server` | do not start server +| `--no-online` | load scripts from local server +| `--minify` | enable minification +| `--no-minify` | disable minification +| `--progress-of-copying` | show progress of copying +| `--no-progress-of-copying`| do not show progress of copying 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 2a0b2f30..2e38fc14 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -30,7 +30,8 @@ 'save', 'server', 'online', - 'minify' + 'minify', + 'progress-of-copying' ], default: { server : true, @@ -40,7 +41,9 @@ online : config('online'), editor : config('editor') || 'edward', username : config('username'), - root : config('root') || '/' + root : config('root') || '/', + + 'progress-of-copying': config('progressOfCopying') }, alias: { v: 'version', @@ -72,6 +75,7 @@ config('online', args.online); config('minify', args.minify); config('username', args.username); + config('progressOfCopying', args['progress-of-copying']); root(args.root); editor(args.editor);