version information for cygcheck

Joshua Daniel Franklin joshuadfranklin@yahoo.com
Sat Feb 23 23:28:00 GMT 2002


Here is a patch for cygcheck that adds an option:
 -z, --version      output version information and exit

I used -z since -v is --verbose. It could also have no character 
option if that would be better. Current output is:

$ ./cygcheck.exe --version
cygcheck (Cygwin) System checker 1.2
Copyright 1998-2002 Red Hat, Inc.

I used 1.2 since 1.0 would probably confuse people (as cygcheck has been
around a long time) and there is no real version infomation available AFAIK.

This patch also changes the usage() function to accept a stream and
exit value, so that if only the --help option is specified usage will
be output to stdout instead of stderr, which is more standard behaviour.

I hope to provide similar patches for the other utils if there
are no objections.

Changelog:

2001-02-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>

* cygcheck.cc (main): added a --version option
* cygcheck.cc (usage): added parameters to accept a stream and exit value

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.cc-patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020223/6476f42a/attachment.ksh>


More information about the Cygwin-patches mailing list