summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/du.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/du.c b/src/du.c
index c132ae7ea..7fe4746d4 100644
--- a/src/du.c
+++ b/src/du.c
@@ -665,12 +665,12 @@ main (int argc, char **argv)
case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
default:
- usage (EXIT_FAILURE);
+ fail = 1;
}
}
if (fail)
- exit (EXIT_FAILURE);
+ usage (EXIT_FAILURE);
if (opt_all && opt_summarize_only)
{