#compdef man apropos whatis help info

ListManFiles() {
  (
    [ -e "/usr/share/man.tar" ] && /bin/toybox.exe tar -tf /usr/share/man.tar | (while read i; do i=${i##*/}; builtin echo "${i%%.*}"; done)
    [ -e "/usr/share/man.tar.bz2" ] && /bin/toybox.exe tar -tjf /usr/share/man.tar.bz2 | (while read i; do i=${i##*/}; builtin echo "${i%%.*}"; done)
    if [ -d "/usr/share/man/" ]; then
      /bin/toybox.exe ls /usr/share/man/*.man /usr/share/man/man?/*.?.gz 2>/dev/null | (while read pat; do pat=${pat##*/}; builtin echo "${pat%%.*}"; done)
    fi
    [ -e "/bin/busybox.exe" ] && /bin/busybox.exe --list
    [ -e "/bin/toybox.exe" ] && /bin/toybox.exe
  ) | /bin/toybox.exe sort -u
}

_man() { 
    local curcontext="$curcontext" state line
    typeset -A opt_args
 
    _arguments \
        '*: :->parameter'
 
    compadd "$@" `ListManFiles`
}
 
_man "$@"
