Skip to content

Commit 9bdd734

Browse files
akinomyogascop
andcommitted
fix(lzip): fix broken case patterns for long and short options
The original codes before PR 862, https://github.com/scop/bash-completion/pull/862/files#diff-87387e55a9536f7ac2aa5fce39d9a0442c29ec2058215563388d5a284a9ac1c1L15-R24 were already broken. According to the man page of lzip, lzip supports separate options `--decompress` and `-d`, but there are no options `--decompress-d` or `--decompress-...d`. In this patch, we separate these unexpectedly combined option names. Reference: #914 (comment) Co-authored-by: Ville Skyttä <[email protected]>
1 parent e9bf32c commit 9bdd734

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

completions/lzip

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ _lzip()
1414
--volume-size | --data-size | -${noargopts}@([bmsSB]|[hV]*))
1515
return
1616
;;
17-
--decompress-${noargopts}d)
17+
--decompress | -${noargopts}d)
1818
decompress=true
1919
;;
20-
--threads-${noargopts}n)
20+
--threads | -${noargopts}n)
2121
COMPREPLY=($(compgen -W "{1..$(_ncpus)}" -- "$cur"))
2222
return
2323
;;
24-
--output-${noargopts}o)
24+
--output | -${noargopts}o)
2525
_filedir
2626
return
2727
;;

0 commit comments

Comments
 (0)