summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/argp-help.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-05-26 03:07:21 +0000
committerMiles Bader <miles@gnu.org>1997-05-26 03:07:21 +0000
commitc8b74ebda19c1daa014d8a12bc58d18ddca0a2d6 (patch)
treee1dfde84717ca1730777b8464bb03d43e49559a8 /libshouldbeinlibc/argp-help.c
parenta0edb1cc02363443ec4d08b177f941f311d8d30c (diff)
(__argp_state_help, argp_args_usage, hol_help):
Replace references to STATE->argp with STATE->root_argp.
Diffstat (limited to 'libshouldbeinlibc/argp-help.c')
-rw-r--r--libshouldbeinlibc/argp-help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libshouldbeinlibc/argp-help.c b/libshouldbeinlibc/argp-help.c
index 85cc0c47..caf85850 100644
--- a/libshouldbeinlibc/argp-help.c
+++ b/libshouldbeinlibc/argp-help.c
@@ -1136,7 +1136,7 @@ hol_help (struct hol *hol, const struct argp_state *state,
Mandatory or optional arguments to long options are also mandatory or \
optional for any corresponding short options.");
const char *fstr = filter_doc (tstr, ARGP_KEY_HELP_DUP_ARGS_NOTE,
- state ? state->argp : 0, state);
+ state ? state->root_argp : 0, state);
if (fstr && *fstr)
{
__argp_fmtstream_putc (stream, '\n');
@@ -1316,7 +1316,7 @@ argp_args_usage (const struct argp *argp, const struct argp_state *state,
const struct argp_child *child = argp->children;
const char *tdoc = gettext (argp->args_doc), *nl = 0;
const char *fdoc = filter_doc (tdoc, ARGP_KEY_HELP_ARGS_DOC,
- state ? state->argp : 0, state);
+ state ? state->root_argp : 0, state);
if (fdoc)
{
@@ -1601,7 +1601,7 @@ __argp_state_help (const struct argp_state *state, FILE *stream, unsigned flags)
if (state && (state->flags & ARGP_LONG_ONLY))
flags |= ARGP_HELP_LONG_ONLY;
- _help (state ? state->argp : 0, state, stream, flags,
+ _help (state ? state->root_argp : 0, state, stream, flags,
state ? state->name : program_invocation_short_name);
if (!state || ! (state->flags & ARGP_NO_EXIT))