diff options
author | Christopher Faylor <me@cgf.cx> | 2004-03-15 21:34:12 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-03-15 21:34:12 +0000 |
commit | befdf18b4d1f029e62fff03dccba61c1dc8a954c (patch) | |
tree | 4591b57aa13fc8df86e716ca99aad28e12b9c411 /winsup | |
parent | c25695bbb9c79595400c2700b3d5e05342108bf1 (diff) | |
download | newlib-befdf18b4d1f029e62fff03dccba61c1dc8a954c.zip newlib-befdf18b4d1f029e62fff03dccba61c1dc8a954c.tar.gz newlib-befdf18b4d1f029e62fff03dccba61c1dc8a954c.tar.bz2 |
* cygpath.cc (usage): Don't issue helpful message if -i is used.
(from Igor Pechtchanski)
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/cygpath.cc | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 1aa9e1f..825efba 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2004-03-15 Christopher Faylor <cgf@redhat.com> + + * cygpath.cc (usage): Don't issue helpful message if -i is used. + (from Igor Pechtchanski) + 2004-03-13 Rob Siklos <rob2@siklos.ca> * kill.cc (get_debug_priv): New function. diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc index fe727df..45372e3 100644 --- a/winsup/utils/cygpath.cc +++ b/winsup/utils/cygpath.cc @@ -89,9 +89,13 @@ System information:\n\ -S, --sysdir output system directory and exit\n\ -W, --windir output `Windows' directory and exit\n\ ", prog_name, prog_name); - if (stream == stdout) + if (ignore_flag) + /* nothing to do */; + else if (stream != stdout) + fprintf(stream, "Try `%s --help' for more information.\n", prog_name); + else { - fprintf (stream, "\ + fprintf (stream, "\ Other options:\n\ -f, --file FILE read FILE for input; use - to read from STDIN\n\ -o, --option read options from FILE as well (for use with --file)\n\ @@ -101,8 +105,6 @@ Other options:\n\ -v, --version output version information and exit\n\ "); } - else - fprintf(stream, "Try `%s --help' for more information.\n", prog_name); exit (ignore_flag ? 0 : status); } |