summaryrefslogtreecommitdiff
path: root/completions/lvm
diff options
context:
space:
mode:
Diffstat (limited to 'completions/lvm')
-rw-r--r--completions/lvm20
1 files changed, 5 insertions, 15 deletions
diff --git a/completions/lvm b/completions/lvm
index 63048aeb..712838c8 100644
--- a/completions/lvm
+++ b/completions/lvm
@@ -81,9 +81,7 @@ _pvscan()
_init_completion || return
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--debug --exported --novolumegroup --help
- --ignorelockingfailure --partial --short --uuid --verbose
- --version' -- "$cur") )
+ COMPREPLY=( $(compgen -W '$(_parse_usage "$1" --help)' -- "$cur") )
fi
} &&
complete -F _pvscan pvscan
@@ -201,9 +199,7 @@ _pvmove()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--abort --autobackup --background --debug
- --force --help --interval --test --verbose --version --name' \
- -- "$cur") )
+ COMPREPLY=( $(compgen -W '$(_parse_usage "$1" --help)' -- "$cur") )
else
_lvm_physicalvolumes
fi
@@ -294,10 +290,7 @@ _vgchange()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--autobackup --alloc --partial --debug
- --help --ignorelockingfailure --test --uuid --verbose --version
- --available --resizeable --logicalvolume --addtag --deltag' \
- -- "$cur") )
+ COMPREPLY=( $(compgen -W '$(_parse_usage "$1" --help)' -- "$cur") )
else
_lvm_volumegroups
fi
@@ -325,9 +318,7 @@ _vgcreate()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--autobackup --addtag --alloc --debug --help
- --maxlogicalvolumes --metadatatype --maxphysicalvolumes
- --physicalextentsize --test --verbose --version' -- "$cur") )
+ COMPREPLY=( $(compgen -W '$(_parse_usage "$1" --help)' -- "$cur") )
else
local args
_lvm_count_args '@(-A|--autobackup|-M|--metadatatype|-s|--physicalextentsize)'
@@ -569,8 +560,7 @@ _vgsplit()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--autobackup --debug --help --list
- --metadatatype --test --verbose --version' -- "$cur") )
+ COMPREPLY=( $(compgen -W '$(_parse_usage "$1" --help)' -- "$cur") )
else
local args
_lvm_count_args '@(-A|--autobackup|-M|--metadatatype)'