diff options
Diffstat (limited to 'rm.c')
-rw-r--r-- | rm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -31,8 +31,8 @@ | |||
31 | static const char* rm_usage = "rm [OPTION]... FILE...\n\n" | 31 | static const char* rm_usage = "rm [OPTION]... FILE...\n\n" |
32 | "Remove (unlink) the FILE(s).\n\n" | 32 | "Remove (unlink) the FILE(s).\n\n" |
33 | "Options:\n" | 33 | "Options:\n" |
34 | "\t-f\tremove existing destinations, never prompt\n" | 34 | "\t-f\t\tremove existing destinations, never prompt\n" |
35 | "\t-r\tremove the contents of directories recursively\n"; | 35 | "\t-r or -R\tremove the contents of directories recursively\n"; |
36 | 36 | ||
37 | 37 | ||
38 | static int recursiveFlag = FALSE; | 38 | static int recursiveFlag = FALSE; |
@@ -72,6 +72,7 @@ extern int rm_main(int argc, char **argv) | |||
72 | while (**argv == '-') { | 72 | while (**argv == '-') { |
73 | while (*++(*argv)) | 73 | while (*++(*argv)) |
74 | switch (**argv) { | 74 | switch (**argv) { |
75 | case 'R': | ||
75 | case 'r': | 76 | case 'r': |
76 | recursiveFlag = TRUE; | 77 | recursiveFlag = TRUE; |
77 | break; | 78 | break; |