1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-03-01 13:42:12 +01:00

Complete help text for options that have separate handlers

Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
This commit is contained in:
Björn Bidar 2023-07-21 23:20:23 +03:00
parent 2ec50ad939
commit 18bdf2e9b4

View File

@ -161,23 +161,38 @@ _osc_project_repositories() {
} }
_osc_cmd_getbinaries() { _osc_cmd_getbinaries() {
if [ "$words[2]" = "-" ]; then
_osc_complete_help_commands 'options' 'option'
return
else
_arguments \ _arguments \
'1:PROJECT:( `cat $osc_projects` )' \ '1:PROJECT:( `cat $osc_projects` )' \
'2:PACKAGE:(PACKAGE)' \ '2:PACKAGE:(PACKAGE)' \
'3:REPOSITORY:( `_osc_project_repositories`' \ '3:REPOSITORY:( `_osc_project_repositories`' \
'4:ARCHITECTURE:(i586 x86_64)' '4:ARCHITECTURE:(i586 x86_64)'
fi
} }
_osc_cmd_checkout() { _osc_cmd_checkout() {
if [ "$words[2]" = "-" ]; then
_osc_complete_help_commands 'options' 'option'
return
else
_arguments \ _arguments \
'1:PROJECT:( `cat $osc_projects` )' \ '1:PROJECT:( `cat $osc_projects` )' \
'2:PACKAGE:(PACKAGE)' '2:PACKAGE:(PACKAGE)'
fi
} }
_osc_cmd_buildlog() { _osc_cmd_buildlog() {
if [ "$words[2]" = "-" ]; then
_osc_complete_help_commands 'options' 'option'
return
else
_arguments \ _arguments \
'1:REPOSITORY:( `_osc_project_repositories` )' \ '1:REPOSITORY:( `_osc_project_repositories` )' \
'2:ARCHITECTURE:(i586 x86_64)' '2:ARCHITECTURE:(i586 x86_64)'
fi
} }
_osc_cmd_submitreq() { _osc_cmd_submitreq() {