aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-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, "/")) {