Ignore:
Timestamp:
Jan 1, 2007, 8:49:57 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Alphabetise flags in help output and manpage.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/zzuf.c

    r1529 r1531  
    111111            { "version",   0, NULL, 'v' },
    112112        };
    113         int c = getopt_long(argc, argv, "I:E:cis:r:F:B:T:qdhv",
     113        int c = getopt_long(argc, argv, "B:cdE:F:hiI:qr:s:T:v",
    114114                            long_options, &option_index);
    115115#   else
    116116#       define MOREINFO "Try `%s -h' for more information.\n"
    117         int c = getopt(argc, argv, "I:E:cis:r:F:B:T:qdhv");
     117        int c = getopt(argc, argv, "B:cdE:F:hiI:qr:s:T:v");
    118118#   endif
    119119        if(c == -1)
     
    517517    printf("Mandatory arguments to long options are mandatory for short options too.\n");
    518518#   ifdef HAVE_GETOPT_LONG
     519    printf("  -B, --max-bytes <n>      kill children that output more than <n> bytes\n");
     520    printf("  -c, --cmdline            only fuzz files specified in the command line\n");
     521    printf("  -d, --debug              print debug messages\n");
     522    printf("  -E, --exclude <regex>    do not fuzz files matching <regex>\n");
     523    printf("  -F, --fork <count>       number of concurrent children (default 1)\n");
     524    printf("  -h, --help               display this help and exit\n");
     525    printf("  -i, --stdin              fuzz standard input\n");
     526    printf("  -I, --include <regex>    only fuzz files matching <regex>\n");
     527    printf("  -q, --quiet              do not print children's messages\n");
    519528    printf("  -r, --ratio <ratio>      bit fuzzing ratio (default 0.004)\n");
    520529    printf("  -s, --seed <seed>        random seed (default 0)\n");
    521530    printf("      --seed <start:stop>  specify a seed range\n");
    522     printf("  -F, --fork <count>       number of concurrent children (default 1)\n");
    523     printf("  -B, --max-bytes <n>      kill children that output more than <n> bytes\n");
    524531    printf("  -T, --max-time <n>       kill children that run for more than <n> seconds\n");
    525     printf("  -q, --quiet              do not print children's messages\n");
    526     printf("  -i, --stdin              fuzz standard input\n");
    527     printf("  -I, --include <regex>    only fuzz files matching <regex>\n");
    528     printf("  -c, --cmdline            only fuzz files specified in the command line\n");
    529     printf("  -E, --exclude <regex>    do not fuzz files matching <regex>\n");
    530     printf("  -d, --debug              print debug messages\n");
    531     printf("  -h, --help               display this help and exit\n");
    532532    printf("  -v, --version            output version information and exit\n");
    533533#   else
     534    printf("  -B <n>           kill children that output more than <n> bytes\n");
     535    printf("  -c               only fuzz files specified in the command line\n");
     536    printf("  -d               print debug messages\n");
     537    printf("  -E <regex>       do not fuzz files matching <regex>\n");
     538    printf("  -F <count>       number of concurrent forks (default 1)\n");
     539    printf("  -h               display this help and exit\n");
     540    printf("  -i               fuzz standard input\n");
     541    printf("  -I <regex>       only fuzz files matching <regex>\n");
     542    printf("  -q               do not print the fuzzed application's messages\n");
    534543    printf("  -r <ratio>       bit fuzzing ratio (default 0.004)\n");
    535544    printf("  -s <seed>        random seed (default 0)\n");
    536545    printf("     <start:stop>  specify a seed range\n");
    537     printf("  -F <count>       number of concurrent forks (default 1)\n");
    538     printf("  -B <n>           kill children that output more than <n> bytes\n");
    539546    printf("  -T <n>           kill children that run for more than <n> seconds\n");
    540     printf("  -q               do not print the fuzzed application's messages\n");
    541     printf("  -i               fuzz standard input\n");
    542     printf("  -I <regex>       only fuzz files matching <regex>\n");
    543     printf("  -c               only fuzz files specified in the command line\n");
    544     printf("  -E <regex>       do not fuzz files matching <regex>\n");
    545     printf("  -d               print debug messages\n");
    546     printf("  -h               display this help and exit\n");
    547547    printf("  -v               output version information and exit\n");
    548548#   endif
Note: See TracChangeset for help on using the changeset viewer.