Merge pull request #568 from kapsh/glances

glances: update existing arguments
This commit is contained in:
nicoulaj 2018-08-26 00:58:51 +02:00 committed by GitHub
commit f3b38922bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 19 deletions

View File

@ -40,24 +40,36 @@
_glances() { _glances() {
_arguments \ _arguments \
"-b[Display network rate in Byte per second]" \ "-0[Divide task CPU usage by the total number of CPUs]" \
"-B[Bind server to the given IP or host NAME]:host:_hosts" \ "-1[Start Glances in per CPU mode]" \
"-c[Connect to a Glances server]:host:_hosts" \ "-2[Disable left sidebar]" \
"-C[Path to the configuration file]:configuration path:_files -/" \ "-3[Disable quick look module]" \
"-d[Disable disk I/O module]" \ "-4[Disable all but quick look and load]" \
"-e[Enable the sensors module (Linux-only)]" \ "-5[Disable top menu]" \
"-f[Set the output folder (HTML) or file (CSV)]:output path:_files -/" \ "-6[Start Glances in mean GPU mode]" \
"-h[Display the syntax and exit]" \ "-b[Display network rate in Byte per second]" \
"-m[Disable mount module]" \ "-B[Bind server to the given IP or host NAME]:host:_hosts" \
"-n[Disable network module]" \ "-c[Connect to a Glances server]:host:_hosts" \
"-o[Define additional output (available: HTML or CSV)]:output type:(HTML CSV)" \ "-C[Path to the configuration file]:configuration path:_files -/" \
"-p[Define the client or server TCP port (default: 61209)]:port:_ports" \ "-d[Enable debug mode]" \
"-P[Client/server password]:password:" \ "-h[Display the syntax and exit]" \
"-s[Run Glances in server mode]" \ "-o[Define additional output (available: HTML or CSV)]:output type:(HTML CSV)" \
"-t[Set the refresh time in seconds (default: 3)]:seconds:" \ "-p[Define the client or server TCP port (default: 61209)]:port:_ports" \
"-v[Display the version and exit]" \ "-q[Disable the curses interface]" \
"-z[Do not use the bold color attribute]" \ "-s[Run Glances in server mode]" \
"-t[Set the refresh time in seconds (default: 3)]:seconds:" \
"-V[Display the version and exit]" \
"-w[Run Glances in web server mode]" \
"-z[Do not use the bold color attribute]" \
"--browser[Start the client browser]" \
"--disable-bg[Disable background colors in the terminal]" \
"--disable-bold[Disable bold mode in the terminal]" \
"--hide-kernel-threads[Hide kernel threads in process list]" \
"--password[Define a client/server password]" \
"--theme-white[Optimize display colors for white background]" \
"--tree[Display processes as tree]" \
"--username[Define a client/server username]" \
} }
_glances "$@" _glances "$@"