Looks like there is some lack of necessary code (very similar to #298919). Take a look and compare: @(u?(ses)|w?(hich))) # Only complete if the previous entry on the command line is not # a package name. if [[ ${prev} == ${mode} ]]; then # Complete on all package names. _pkgname -A $cur COMPREPLY=($(compgen -W "${COMPREPLY[@]} --help" -- ${cur})) fi ;; versus: s?(ize)) # Only complete if the previous entry on the command line is not # a package name. if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then case $cur in -*) COMPREPLY=($(compgen -W "--help -b --bytes" -- $cur)) ;; *) # Only installed packages can have their size calculated. _pkgname -I $cur ;; esac fi ;; Also 'uses' and 'which' modules no longer have the same options, so there is need to separate them. Patch in a moment.
Created attachment 258464 [details, diff] Fixes completion for equery 'uses' and 'which' modules
Created attachment 309915 [details, diff] patch - fix pkgspec completion - separate completion for these modules, as they have another sets of options