dmwm / CRABClient

runrange
14 stars 36 forks source link

crab client bash completions do not respect custom sorting order #5314

Closed mapellidario closed 4 months ago

mapellidario commented 4 months ago

problem

When using the crab client the suggestions do not respect the desired sorting. I get

[dmapelli@lxplus9105 ~]$ crab <tab><tab>
--debug           -h                checkwrite        kill              report            status
--help            checkdataset      createmyproxy     preparelocal      resubmit          submit
--quiet           checkfile         getlog            proceed           setdatasetstatus  tasks
--version         checkusername     getoutput         remake            setfilestatus     uploadlog

Despite we explicitly asked for

COMPREPLY=( $(compgen -W '--version --help -h --quiet --debug status tasks proceed checkwrite getlog checkusername checkdataset checkfile submit getoutput resubmit kill uploadlog remake report preparelocal createmyproxy setdatasetstatus setfilestatus' -- $cur) )

solution

PR on its way...