Use consistent argument order in bash completion
In most of this file and in Dockers's bash completion the sort order of options is to sort alphabetically by long option name. The short options are put right behind their long couterpart. This commit improves consistency. Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
b03a2f7910
commit
2cfda01ff4
1 changed files with 5 additions and 5 deletions
|
|
@ -223,7 +223,7 @@ _docker_compose_pull() {
|
|||
|
||||
_docker_compose_restart() {
|
||||
case "$prev" in
|
||||
-t | --timeout)
|
||||
--timeout|-t)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
|
@ -311,7 +311,7 @@ _docker_compose_start() {
|
|||
|
||||
_docker_compose_stop() {
|
||||
case "$prev" in
|
||||
-t | --timeout)
|
||||
--timeout|-t)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
|
@ -341,7 +341,7 @@ _docker_compose_unpause() {
|
|||
|
||||
_docker_compose_up() {
|
||||
case "$prev" in
|
||||
-t | --timeout)
|
||||
--timeout|-t)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
|
@ -402,11 +402,11 @@ _docker_compose() {
|
|||
local compose_file compose_project
|
||||
while [ $counter -lt $cword ]; do
|
||||
case "${words[$counter]}" in
|
||||
-f|--file)
|
||||
--file|-f)
|
||||
(( counter++ ))
|
||||
compose_file="${words[$counter]}"
|
||||
;;
|
||||
-p|--project-name)
|
||||
--project-name|p)
|
||||
(( counter++ ))
|
||||
compose_project="${words[$counter]}"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue