aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-02-15 15:44:26 -0600
committerRob Landley <rob@landley.net>2015-02-15 15:44:26 -0600
commit54c712712436ddd10cb177afe0d86e6d4e11ddef (patch)
tree69b9b902ff388be54055dd501d1d24534ed5163b /toys/posix
parent7c5ed1cedaa881fff52da019da96f9bf6735dc5d (diff)
downloadtoybox-54c712712436ddd10cb177afe0d86e6d4e11ddef.tar.gz
Add --remove-destination longopt for -F because the host version doesn't have a shortopt for it.
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/cp.c b/toys/posix/cp.c
index c1a438f9..3dc6f2ac 100644
--- a/toys/posix/cp.c
+++ b/toys/posix/cp.c
@@ -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))
USE_INSTALL(NEWTOY(install, "<1cdDpsvm:o:g:", TOYFLAG_USR|TOYFLAG_BIN))
*
@@ -22,7 +22,7 @@ config CP
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)