From f6e3f4db34673a15f9a92f3a5c60b1e63c33b06b Mon Sep 17 00:00:00 2001 From: database64128 Date: Sun, 7 Aug 2022 11:37:36 +0800 Subject: [PATCH] cp completions: reflink's arguments are optional When no arguments are unspecified, `--reflink` is equivalent to `--reflink=always`. --- share/completions/cp.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/cp.fish b/share/completions/cp.fish index 65bedc4cb..e8c920005 100644 --- a/share/completions/cp.fish +++ b/share/completions/cp.fish @@ -23,7 +23,7 @@ if cp --version 2>/dev/null >/dev/null # GNU cp complete -c cp -f -l no-preserve -r -d "Don't preserve ATTRIBUTES" -xa "mode ownership timestamps links all" complete -c cp -l parents -d "Use full source file name under DIRECTORY" complete -c cp -s r -s R -l recursive -d "Copy directories recursively" - complete -c cp -l reflink -d "Control clone/CoW copies" -xa "always auto never" + complete -c cp -l reflink -d "Control clone/CoW copies" -a "always auto never" complete -c cp -l remove-destination -d "First remove existing destination files" complete -c cp -f -l sparse -r -d "Control creation of sparse files" -xa "always auto never" complete -c cp -s s -l symbolic-link -d "Make symbolic links instead of copying"