diff options
author | Jim Meyering <jim@meyering.net> | 2005-10-01 08:01:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-10-01 08:01:25 +0000 |
commit | 157712c3cbf97f9aeb93656cd00dda6d9539a873 (patch) | |
tree | 091be114ea8229bdb0a7a79a3f3ef97ba6d8b912 | |
parent | 5664caead18ff04a713473adad0c27d5636a82a8 (diff) | |
download | coreutils-157712c3cbf97f9aeb93656cd00dda6d9539a873.tar.xz |
(main): Don't stop processing arguments upon the first invalid one.
-rw-r--r-- | src/factor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/factor.c b/src/factor.c index f1e565553..6578a7782 100644 --- a/src/factor.c +++ b/src/factor.c @@ -211,10 +211,10 @@ main (int argc, char **argv) else { int i; + ok = true; for (i = optind; i < argc; i++) if (! print_factors (argv[i])) - usage (EXIT_FAILURE); - ok = true; + ok = false; } exit (ok ? EXIT_SUCCESS : EXIT_FAILURE); |