aboutsummaryrefslogtreecommitdiff
path: root/cp_mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'cp_mv.c')
-rw-r--r--cp_mv.c34
1 files changed, 21 insertions, 13 deletions
diff --git a/cp_mv.c b/cp_mv.c
index a0d677c45..72ba537c5 100644
--- a/cp_mv.c
+++ b/cp_mv.c
@@ -46,25 +46,33 @@
46#define is_cp 0 46#define is_cp 0
47#define is_mv 1 47#define is_mv 1
48static int dz_i; /* index into cp_mv_usage */ 48static int dz_i; /* index into cp_mv_usage */
49static const char *cp_mv_usage[] = /* .rodata */ 49
50{ 50const char cp_usage[] =
51 "cp [OPTION]... SOURCE DEST\n" 51 "cp [OPTION]... SOURCE DEST\n"
52 " or: cp [OPTION]... SOURCE... DIRECTORY\n" 52 " or: cp [OPTION]... SOURCE... DIRECTORY\n"
53#ifndef BB_FEATURE_TRIVIAL_HELP 53#ifndef BB_FEATURE_TRIVIAL_HELP
54 "\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n" 54 "\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n"
55 "\n" 55 "\n"
56 "\t-a\tSame as -dpR\n" 56 "\t-a\tSame as -dpR\n"
57 "\t-d\tPreserves links\n" 57 "\t-d\tPreserves links\n"
58 "\t-p\tPreserves file attributes if possible\n" 58 "\t-p\tPreserves file attributes if possible\n"
59 "\t-f\tforce (implied; ignored) - always set\n" 59 "\t-f\tforce (implied; ignored) - always set\n"
60 "\t-R\tCopies directories recursively\n" 60 "\t-R\tCopies directories recursively\n"
61#endif 61#endif
62 , 62 ;
63
64const char mv_usage[] =
63 "mv SOURCE DEST\n" 65 "mv SOURCE DEST\n"
64 " or: mv SOURCE... DIRECTORY\n" 66 " or: mv SOURCE... DIRECTORY\n"
65#ifndef BB_FEATURE_TRIVIAL_HELP 67#ifndef BB_FEATURE_TRIVIAL_HELP
66 "\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n" 68 "\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n"
67#endif 69#endif
70 ;
71
72static const char *cp_mv_usage[] = /* .rodata */
73{
74 cp_usage,
75 mv_usage
68}; 76};
69 77
70static int recursiveFlag; 78static int recursiveFlag;