Changeset 1502


Ignore:
Timestamp:
Dec 18, 2006, 2:23:56 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Improved help.
File:
1 edited

Legend:

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

    r1487 r1502  
    107107    if(optind >= argc)
    108108    {
    109         usage();
     109        printf("%s: missing argument\n", argv[0]);
     110        printf(MOREINFO, argv[0]);
    110111        return -1;
    111112    }
     
    150151static void version(void)
    151152{
    152     printf("zzuf %s by Sam Hocevar <sam@zoy.org>\n", VERSION);
     153    printf("zzuf %s\n", VERSION);
     154    printf("Copyright (C) 2006 Sam Hocevar <sam@zoy.org>\n");
     155    printf("This is free software.  You may redistribute copies of it under the\n");
     156    printf("terms of the Do What The Fuck You Want To Public License, Version 2\n");
     157    printf("<http://sam.zoy.org/wtfpl/>.\n");
     158    printf("There is NO WARRANTY, to the extent permitted by law.\n");
     159    printf("\n");
     160    printf("Written by Sam Hocevar. Report bugs to <sam@zoy.org>.\n");
    153161}
    154162
     
    157165{
    158166    printf("Usage: zzuf [ -vdh ] [ -i include ] [ -e exclude ]\n");
    159     printf("                     [ -r ratio ] [ -s seed ] PROGRAM ARGS...\n");
     167    printf("                     [ -r ratio ] [ -s seed ] COMMAND [ARGS]...\n");
     168    printf("Run COMMAND and randomly fuzz its input files.\n");
     169    printf("\n");
     170    printf("Mandatory arguments to long options are mandatory for short options too.\n");
    160171#   ifdef HAVE_GETOPT_LONG
    161     printf("  -h, --help          display this help and exit\n");
    162     printf("  -v, --version       output version information and exit\n");
     172    printf("  -i, --include <regex>  only fuzz files matching <regex>\n");
     173    printf("  -e, --exclude <regex>  do not fuzz files matching <regex>\n");
     174    printf("  -r, --ratio <ratio>    bit fuzzing ratio (default 0.004)\n");
     175    printf("  -s, --seed <seed>      random seed (default 0)\n");
     176    printf("  -d, --debug            print debug messages\n");
     177    printf("  -h, --help             display this help and exit\n");
     178    printf("  -v, --version          output version information and exit\n");
    163179#   else
    164     printf("  -h        display this help and exit\n");
    165     printf("  -v        output version information and exit\n");
     180    printf("  -i <regex>  only fuzz files matching <regex>\n");
     181    printf("  -e <regex>  do not fuzz files matching <regex>\n");
     182    printf("  -r <ratio>  bit fuzzing ratio (default 0.004)\n");
     183    printf("  -s <seed>   random seed (default 0)\n");
     184    printf("  -d          print debug messages\n");
     185    printf("  -h          display this help and exit\n");
     186    printf("  -v          output version information and exit\n");
    166187#   endif
     188    printf("\n");
     189    printf("Written by Sam Hocevar. Report bugs to <sam@zoy.org>.\n");
    167190}
    168191#endif
Note: See TracChangeset for help on using the changeset viewer.