HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/zsh/functions/Completion/Unix/_rrdtool
#compdef rrdtool

local curcontext="$curcontext" state line expl ret=1

_arguments -C \
  ':rrdtool command:(create update updatev graph dump restore
                   last lastupdate first help info fetch tune
		   resize xport)' \
  '*:: :->subcmds' && ret=0

curcontext="${curcontext%:*}-$words[1]:"
case "$state" in
  (subcmds)
    case "$words[1]" in
      (help)
	_wanted -V 'subcommands' expl 'subcommand' compadd \
	  create update updatev graph dump restore last lastupdate \
	  first help info fetch tune resize xport
      ;;
      (*)
        _files
      ;;
    esac
  ;;
esac