summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/argp-help.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-16 04:27:17 +0000
committerMiles Bader <miles@gnu.org>1996-07-16 04:27:17 +0000
commitc522903c6f025554eddb17a6ec06785a9f4a9548 (patch)
tree3e0bf5593d0af89524e6b237cf6ea5cf69f56f3f /libshouldbeinlibc/argp-help.c
parentef63c3e747d5f857c905e37b8bb84f97418fe2ee (diff)
(argp_help): Set the lmargin after printing the start of the usage message,
so that it won't get indented.
Diffstat (limited to 'libshouldbeinlibc/argp-help.c')
-rw-r--r--libshouldbeinlibc/argp-help.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libshouldbeinlibc/argp-help.c b/libshouldbeinlibc/argp-help.c
index 8b9bcc4b..833f11f3 100644
--- a/libshouldbeinlibc/argp-help.c
+++ b/libshouldbeinlibc/argp-help.c
@@ -754,10 +754,15 @@ void argp_help (const struct argp *argp, FILE *stream,
if (flags & (ARGP_HELP_USAGE | ARGP_HELP_SHORT_USAGE))
/* Print a short `Usage:' message. */
{
+ int old_lm;
int old_wm = line_wrap_set_wmargin (stream, USAGE_INDENT);
- int old_lm = line_wrap_set_lmargin (stream, USAGE_INDENT);
fprintf (stream, "Usage: %s", name);
+
+ /* We set the lmargin as well as the wmargin, because hol_usage
+ manually wraps options with newline to avoid annoying breaks. */
+ old_lm = line_wrap_set_lmargin (stream, USAGE_INDENT);
+
if (flags & ARGP_HELP_SHORT_USAGE)
/* Just show where the options go. */
{