This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Here is the --help, --version patch for regtool. I reorganized the usage output in a hopefully more logical manner. As Corinna suggested for some of the other utils, --help produces more verbose output, but an error usage() still retains useful info. I also added a check for (_argv[optind+1] == NULL) after the getopt, which was causing a core dump on 'regtool get' with no KEY. ChangeLog: 2002-06-02 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> * regtool.cc (prog_name): New global variable. (longopts): Ditto. (opts): Ditto. (usage): Standardize usage output. Rearrange/add descriptions. (print_version): New function. (main): Accomodate longopts and new --help, --version options. Add check for (_argv[optind+1] == NULL).
Attachment:
regtool.cc-patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |