]> git.draconx.ca Git - cdecl99.git/blobdiff - test/randomdecl.c
Use common help formatting in test cases.
[cdecl99.git] / test / randomdecl.c
index a5b5d3cb39e99833c71a5603f5e70d72ca4ee172..c9f4e41793188e7271068590e9451aa0c88e5e1d 100644 (file)
@@ -58,14 +58,7 @@ static void print_help(void)
 
        print_usage(stdout);
        puts("Generate random C declarations for testing.\n");
-
-       puts("Options:");
-       for (opt = lopts; opt->val; opt++) {
-               int w = print_option_start(opt, NULL);
-
-               if (w)
-                       putchar('\n');
-       }
+       test_print_options(lopts);
 }
 
 static struct cdecl *random_decl(struct gen_rng *rng)