diff options
Diffstat (limited to 'bash-completion/mkswap')
-rw-r--r-- | bash-completion/mkswap | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bash-completion/mkswap b/bash-completion/mkswap index 61157ef..71ae77e 100644 --- a/bash-completion/mkswap +++ b/bash-completion/mkswap @@ -21,13 +21,21 @@ _mkswap_module() COMPREPLY=( $(compgen -W "$(uuidgen -r)" -- $cur) ) return 0 ;; + '-o'|'--offset') + COMPREPLY=( $(compgen -W "bytes" -- $cur) ) + return 0 + ;; + '-s'|'--size') + COMPREPLY=( $(compgen -W "bytes" -- $cur) ) + return 0 + ;; '-h'|'--help'|'-V'|'--version') return 0 ;; esac case $cur in -*) - OPTS="--check --force --pagesize --lock --label --swapversion --uuid --verbose --version --help" + OPTS="--check --force --pagesize --lock --label --swapversion --uuid --offset --verbose --version --help --size --file" COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; |