From c522903c6f025554eddb17a6ec06785a9f4a9548 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 16 Jul 1996 04:27:17 +0000 Subject: (argp_help): Set the lmargin after printing the start of the usage message, so that it won't get indented. --- libshouldbeinlibc/argp-help.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libshouldbeinlibc') 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. */ { -- cgit v1.2.3