From 9429663af32488ce81aee19ac04697b07fc241ab Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 15 Sep 2017 18:31:11 +0200 Subject: 41709: update options in Linux sysstat completions --- Completion/Unix/Command/_iostat | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'Completion/Unix/Command') diff --git a/Completion/Unix/Command/_iostat b/Completion/Unix/Command/_iostat index 88fc6a103..e95d62f80 100644 --- a/Completion/Unix/Command/_iostat +++ b/Completion/Unix/Command/_iostat @@ -1,6 +1,7 @@ #compdef iostat -local -a args +local -a args parser +parser=( -s -S -A '-*' ) case $OSTYPE:l in *bsd*) @@ -109,23 +110,32 @@ case $OSTYPE:l in ) ;; *linux*) + parser=( -s ) args=( '-c[display CPU utilization report]' '-d[display device utilization report]' - '-T[only display global statistics for group_name]' - '-g[display statistics for a group of devices]:group name' - '-h[human readable device utilization report]' - '-j[display persistent device name]' + '*-g[display statistics for a group of devices]:group name' + '-H[only display global statistics for group]' + '(--human)-h[human readable device utilization report]' + '--human[print sizes in human readable format]' + '-j[display persistent device name]:name type:(ID LABEL PATH UUID)' '(-m)-k[display statistics in kB/s]' '(-k)-m[display statistics in MB/s]' '-N[display registered device mapper names]' + '-o[display statistics in JSON]:format:(JSON)' + '-p[display statistics for block devices]' + '-t[display the time for each report]' + '(- *)-V[display version information]' + '-x[display extended statistics]' + '-y[omit first statistics report following system boot]' + '-z[omit output for devices lacking activity]' '*::device:_files -W /dev -g "*(-%)"' ) ;; esac if (( $#args )); then - _arguments -s -w -A '-*' : $args + _arguments $parser : $args return fi -- cgit 1.4.1