(main): Don't stop processing arguments upon the first invalid one.
authorJim Meyering <jim@meyering.net>
Sat, 1 Oct 2005 08:01:25 +0000 (08:01 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 1 Oct 2005 08:01:25 +0000 (08:01 +0000)
src/factor.c

index f1e5655..6578a77 100644 (file)
@@ -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);