diff options
| author | Karel Zak <kzak@redhat.com> | 2025-10-16 11:56:08 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2025-10-21 11:17:47 +0200 |
| commit | 8008075ce50114478cc1d4c9411e9a2439cac6bf (patch) | |
| tree | 595b92e22f39642cd9012592ec420c26f165a4e8 /bash-completion | |
| parent | 04619aacdb31ecdf451f07fa2cf93b67387c1638 (diff) | |
| download | util-linux-8008075ce50114478cc1d4c9411e9a2439cac6bf.tar.gz | |
losetup: make --remove a long-only option with mutual exclusivity
Change --remove from '-R, --remove' to a long-only option '--remove'.
This makes it consistent with other administrative options and adds
mutual exclusivity with other major actions like -d, -D, -a, -c, -f,
-j, -l, and -O.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'bash-completion')
| -rw-r--r-- | bash-completion/losetup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash-completion/losetup b/bash-completion/losetup index b668782fbf..783d966c79 100644 --- a/bash-completion/losetup +++ b/bash-completion/losetup @@ -15,7 +15,7 @@ _losetup_module() COMPREPLY=( $(compgen -W "$ARG" -- $cur) ) return 0 ;; - '-c'|'--set-capacity') + '-c'|'--set-capacity'|'--remove') ARG="$(for I in /dev/loop[0-9]*; do if [ -e $I ]; then echo $I; fi; done)" COMPREPLY=( $(compgen -W "$ARG" -- $cur) ) return 0 @@ -57,6 +57,7 @@ _losetup_module() --sizelimit --partscan --read-only + --remove --show --verbose --json |
