changeset 1699:dee053b7c775

Add --remove-destination longopt for -F because the host version doesn't have a shortopt for it.
author Rob Landley <>
date Sun, 15 Feb 2015 15:44:26 -0600
parents 31475e814232
children 3b62d24bfa27
files toys/posix/cp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/toys/posix/cp.c	Sun Feb 15 15:27:43 2015 -0600
+++ b/toys/posix/cp.c	Sun Feb 15 15:44:26 2015 -0600
@@ -7,7 +7,7 @@
 // This is subtle: MV options shared with CP must be in same order (right to
 // left) as CP for FLAG_X macros to work out right.
-USE_CP(NEWTOY(cp, "<2RHLPp"USE_CP_MORE("rdaslvnF")"fi[-HLP"USE_CP_MORE("d")"]"USE_CP_MORE("[-ni]"), TOYFLAG_BIN))
+USE_CP(NEWTOY(cp, "<2RHLPp"USE_CP_MORE("rdaslvnF(remove-destination)")"fi[-HLP"USE_CP_MORE("d")"]"USE_CP_MORE("[-ni]"), TOYFLAG_BIN))
 USE_MV(NEWTOY(mv, "<2"USE_CP_MORE("vnF")"fi"USE_CP_MORE("[-ni]"), TOYFLAG_BIN))
@@ -22,7 +22,7 @@
     be a directory.
     -f	delete destination files we can't write to
-    -F	delete any existing destination file first (breaks hardlinks)
+    -F	delete any existing destination file first (--remove-destination)
     -i	interactive, prompt before overwriting existing DEST
     -p	preserve timestamps, ownership, and permissions
     -R	recurse into subdirectories (DEST must be a directory)