diff options
| author | Thomas Weißschuh <thomas@t-8ch.de> | 2023-04-28 20:42:01 +0200 |
|---|---|---|
| committer | Thomas Weißschuh <thomas@t-8ch.de> | 2023-05-11 12:09:56 +0200 |
| commit | 84ec6f99f7927e5dc05a20f133b21f5870923ff1 (patch) | |
| tree | 719918d6222a64e9ca0ef66813892768ce0ab694 /bash-completion | |
| parent | b0826e8c98dc57eceacdb7e9784315a1ff41a21d (diff) | |
| download | util-linux-84ec6f99f7927e5dc05a20f133b21f5870923ff1.tar.gz | |
mkswap: implement --offset
Addresses #2166
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Diffstat (limited to 'bash-completion')
| -rw-r--r-- | bash-completion/mkswap | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bash-completion/mkswap b/bash-completion/mkswap index 61157ef13e..33b0a70ceb 100644 --- a/bash-completion/mkswap +++ b/bash-completion/mkswap @@ -21,13 +21,17 @@ _mkswap_module() COMPREPLY=( $(compgen -W "$(uuidgen -r)" -- $cur) ) return 0 ;; + '-o'|'--offset') + 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" COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; |
