Mercurial > hg > octave-lyh > gnulib-hg
changeset 6577:d41048afd9bb
(usage_long_opt): Do not print DOC options.
(__argp_base_name): Removed
author | Sergey Poznyakoff <gray@gnu.org.ua> |
---|---|
date | Sat, 21 Jan 2006 19:06:40 +0000 |
parents | 9d14a72114be |
children | a3d505d6dd7a |
files | lib/argp-help.c |
diffstat | 1 files changed, 1 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -50,7 +50,6 @@ #include "argp.h" #include "argp-fmtstream.h" #include "argp-namefrob.h" -#include "dirname.h" #ifndef SIZE_MAX # define SIZE_MAX ((size_t) -1) @@ -1305,7 +1304,7 @@ if (! arg) arg = real->arg; - if (! (flags & OPTION_NO_USAGE)) + if (! (flags & OPTION_NO_USAGE) && !odoc (opt)) { if (arg) { @@ -1714,15 +1713,6 @@ weak_alias (__argp_help, argp_help) #endif -char * -__argp_base_name (char *name) -{ - char *p; - for (p = name + strlen (name); p > name && !ISSLASH (p[-1]); p--) - ; - return p; -} - #if ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME) char * __argp_short_program_name (void)