Changeset 1525 for zzuf/trunk/src/zzuf.c
- Timestamp:
- Dec 29, 2006, 5:46:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/zzuf.c
r1511 r1525 96 96 { 97 97 /* Long option, needs arg, flag, short option */ 98 { "include", 1, NULL, ' i' },99 { "exclude", 1, NULL, ' e' },98 { "include", 1, NULL, 'I' }, 99 { "exclude", 1, NULL, 'E' }, 100 100 { "seed", 1, NULL, 's' }, 101 101 { "ratio", 1, NULL, 'r' }, … … 108 108 { "version", 0, NULL, 'v' }, 109 109 }; 110 int c = getopt_long(argc, argv, " i:e:s:r:F:B:T:qdhv",110 int c = getopt_long(argc, argv, "I:E:s:r:F:B:T:qdhv", 111 111 long_options, &option_index); 112 112 # else 113 113 # define MOREINFO "Try `%s -h' for more information.\n" 114 int c = getopt(argc, argv, " i:e:s:r:F:B:T:qdhv");114 int c = getopt(argc, argv, "I:E:s:r:F:B:T:qdhv"); 115 115 # endif 116 116 if(c == -1) … … 119 119 switch(c) 120 120 { 121 case ' i': /* --include */121 case 'I': /* --include */ 122 122 setenv("ZZUF_INCLUDE", optarg, 1); 123 123 break; 124 case ' e': /* --exclude */124 case 'E': /* --exclude */ 125 125 setenv("ZZUF_EXCLUDE", optarg, 1); 126 126 break; … … 428 428 printf("Usage: zzuf [ -vqdh ] [ -r ratio ] [ -s seed | -s start:stop]\n"); 429 429 printf(" [ -F children ] [ -B bytes ] [ -T seconds ]\n"); 430 printf(" [ - i include ] [ -eexclude ] COMMAND [ARGS]...\n");430 printf(" [ -I include ] [ -E exclude ] COMMAND [ARGS]...\n"); 431 431 printf("Run COMMAND and randomly fuzz its input files.\n"); 432 432 printf("\n"); … … 440 440 printf(" -T, --max-time <n> kill children that run for more than <n> seconds\n"); 441 441 printf(" -q, --quiet do not print children's messages\n"); 442 printf(" - i, --include <regex> only fuzz files matching <regex>\n");443 printf(" - e, --exclude <regex> do not fuzz files matching <regex>\n");442 printf(" -I, --include <regex> only fuzz files matching <regex>\n"); 443 printf(" -E, --exclude <regex> do not fuzz files matching <regex>\n"); 444 444 printf(" -d, --debug print debug messages\n"); 445 445 printf(" -h, --help display this help and exit\n"); … … 453 453 printf(" -T <n> kill children that run for more than <n> seconds\n"); 454 454 printf(" -q do not print the fuzzed application's messages\n"); 455 printf(" - i<regex> only fuzz files matching <regex>\n");456 printf(" - e<regex> do not fuzz files matching <regex>\n");455 printf(" -I <regex> only fuzz files matching <regex>\n"); 456 printf(" -E <regex> do not fuzz files matching <regex>\n"); 457 457 printf(" -d print debug messages\n"); 458 458 printf(" -h display this help and exit\n");
Note: See TracChangeset
for help on using the changeset viewer.