aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/rm.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-08-22 12:55:42 -0700
committerRob Landley <rob@landley.net>2019-08-23 10:56:56 -0500
commitee8eca90ec9cfd589b8bf03517a62b6c7a664bf1 (patch)
treea9b8f40b2d3a3cbcf7288f1c9e3591c977721a00 /toys/posix/rm.c
parent06897a859d10f9de11354a6ead84dcacaa91a6ae (diff)
downloadtoybox-ee8eca90ec9cfd589b8bf03517a62b6c7a664bf1.tar.gz
rm: error message consistency.
Before: $ ./rm rm: Needs 1 argument $ ./rmdir rmdir: Needs 1 argument (see "rmdir --help") After: $ ./rm rm: Needs 1 argument (see "rm --help")
Diffstat (limited to 'toys/posix/rm.c')
-rw-r--r--toys/posix/rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/rm.c b/toys/posix/rm.c
index 6c64e13f..5d5cb604 100644
--- a/toys/posix/rm.c
+++ b/toys/posix/rm.c
@@ -89,7 +89,7 @@ void rm_main(void)
char **s;
// Can't use <1 in optstring because zero arguments with -f isn't an error
- if (!toys.optc && !(toys.optflags & FLAG_f)) error_exit("Needs 1 argument");
+ if (!toys.optc && !(toys.optflags & FLAG_f)) help_exit("Needs 1 argument");
for (s = toys.optargs; *s; s++) {
if (!strcmp(*s, "/")) {