dmwm / CRABClient

runrange
14 stars 36 forks source link

cleanup useless options from crab-bash-completion.sh #5255

Closed belforte closed 10 months ago

belforte commented 10 months ago

most commands take crab instance from the working directory, but autocompletion still suggests that it can be used as option, e.g.

 crab kill --help
Usage: crab.py kill [options] [args]

     Command to kill submitted tasks. The user must give the crab project
directory for the task he/she wants to kill.

Options:
  -h, --help            show this help message and exit
  --killwarning=KILLWARNING
                        A warning message to be appended to the warnings list
                        shown by "crab status"
  --proxy=PROXY         Use the given proxy. Skip Grid proxy creation and
                        myproxy delegation.
  -d PROJDIR, --dir=PROJDIR
                        Path to the CRAB project directory for which the crab
                        command should be executed.
  --instance=INSTANCE   Running instance of CRAB service. Valid values are
                        dict_keys(['prod', 'preprod', 'auth', 'test1',
                        'test2', 'test3', 'test4', 'test5', 'test6', 'test11',
                        'test12', 'stefanovm', 'stefanovm2', 'other']).