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:
parent
2ec50ad939
commit
18bdf2e9b4
@ -161,23 +161,38 @@ _osc_project_repositories() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_osc_cmd_getbinaries() {
|
_osc_cmd_getbinaries() {
|
||||||
_arguments \
|
if [ "$words[2]" = "-" ]; then
|
||||||
'1:PROJECT:( `cat $osc_projects` )' \
|
_osc_complete_help_commands 'options' 'option'
|
||||||
'2:PACKAGE:(PACKAGE)' \
|
return
|
||||||
'3:REPOSITORY:( `_osc_project_repositories`' \
|
else
|
||||||
'4:ARCHITECTURE:(i586 x86_64)'
|
_arguments \
|
||||||
|
'1:PROJECT:( `cat $osc_projects` )' \
|
||||||
|
'2:PACKAGE:(PACKAGE)' \
|
||||||
|
'3:REPOSITORY:( `_osc_project_repositories`' \
|
||||||
|
'4:ARCHITECTURE:(i586 x86_64)'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_osc_cmd_checkout() {
|
_osc_cmd_checkout() {
|
||||||
_arguments \
|
if [ "$words[2]" = "-" ]; then
|
||||||
'1:PROJECT:( `cat $osc_projects` )' \
|
_osc_complete_help_commands 'options' 'option'
|
||||||
'2:PACKAGE:(PACKAGE)'
|
return
|
||||||
|
else
|
||||||
|
_arguments \
|
||||||
|
'1:PROJECT:( `cat $osc_projects` )' \
|
||||||
|
'2:PACKAGE:(PACKAGE)'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_osc_cmd_buildlog() {
|
_osc_cmd_buildlog() {
|
||||||
_arguments \
|
if [ "$words[2]" = "-" ]; then
|
||||||
'1:REPOSITORY:( `_osc_project_repositories` )' \
|
_osc_complete_help_commands 'options' 'option'
|
||||||
'2:ARCHITECTURE:(i586 x86_64)'
|
return
|
||||||
|
else
|
||||||
|
_arguments \
|
||||||
|
'1:REPOSITORY:( `_osc_project_repositories` )' \
|
||||||
|
'2:ARCHITECTURE:(i586 x86_64)'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_osc_cmd_submitreq() {
|
_osc_cmd_submitreq() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user