Hide /-y, /y when needed for copy command

This commit is contained in:
EmilySeville7cfg 2021-11-26 10:28:13 +10:00 committed by ridiculousfish
parent 61a77ef9fc
commit c3f928b2fa

View file

@ -4,11 +4,14 @@ function __copy_generate_args --description 'Function to generate args'
/b\tIndicate a binary file'
end
if not __fish_seen_argument --windows 'y' --windows '-y'
echo -e '/y=\tHide prompts to confirm that you want to overwrite an existing destination file
/-y\tShow prompts to confirm that you want to overwrite an existing destination file'
end
echo -e '/d\tAllow the encrypted files being copied to be saved as decrypted files at the destination
/v\tVerify that new files are written correctly
/n\tUse a short file name, if available
/y=\tHide prompts to confirm that you want to overwrite an existing destination file
/-y\tShow prompts to confirm that you want to overwrite an existing destination file
/z\tCopy networked files in restartable mode
/?\tShow help'
end