diff options
Diffstat (limited to 'rm.c')
-rw-r--r-- | rm.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -25,7 +25,7 @@ | |||
25 | #include <utime.h> | 25 | #include <utime.h> |
26 | #include <dirent.h> | 26 | #include <dirent.h> |
27 | 27 | ||
28 | static const char* rm_usage = "Usage: rm [OPTION]... FILE...\n" | 28 | static const char* rm_usage = "rm [OPTION]... FILE...\n" |
29 | "Remove (unlink) the FILE(s).\n\n" | 29 | "Remove (unlink) the FILE(s).\n\n" |
30 | "\t-f\tremove existing destinations, never prompt\n" | 30 | "\t-f\tremove existing destinations, never prompt\n" |
31 | "\t-r\tremove the contents of directories recursively\n"; | 31 | "\t-r\tremove the contents of directories recursively\n"; |
@@ -58,8 +58,7 @@ extern int rm_main(int argc, char **argv) | |||
58 | { | 58 | { |
59 | 59 | ||
60 | if (argc < 2) { | 60 | if (argc < 2) { |
61 | fprintf(stderr, "Usage: %s", rm_usage); | 61 | usage( rm_usage); |
62 | exit (FALSE); | ||
63 | } | 62 | } |
64 | argc--; | 63 | argc--; |
65 | argv++; | 64 | argv++; |
@@ -75,8 +74,7 @@ extern int rm_main(int argc, char **argv) | |||
75 | forceFlag = TRUE; | 74 | forceFlag = TRUE; |
76 | break; | 75 | break; |
77 | default: | 76 | default: |
78 | fprintf(stderr, "Usage: %s\n", rm_usage); | 77 | usage( rm_usage); |
79 | exit(FALSE); | ||
80 | } | 78 | } |
81 | argc--; | 79 | argc--; |
82 | argv++; | 80 | argv++; |