From e3fda28e74ba97f5806d65a2ce5a53e6dbebe841 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 30 Mar 2009 19:52:01 +0200 Subject: [PATCH] 2009-03-30 Tollef Fog Heen * popthelp.c (poptPrintUsage,poptPrintHelp): Add [LIBRARIES] to help output. Debian #389066 --- ChangeLog | 5 +++++ popthelp.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index df3d911..d8934e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-30 Tollef Fog Heen + + * popthelp.c (poptPrintUsage,poptPrintHelp): Add [LIBRARIES] to + help output. Debian #389066 + 2008-04-28 Tollef Fog Heen * parse.c Add my name to the copyright header, mainly to prevent diff --git a/popthelp.c b/popthelp.c index 40d542e..8fa68d1 100644 --- a/popthelp.c +++ b/popthelp.c @@ -195,10 +195,11 @@ void poptPrintHelp(poptContext con, FILE * f, int flags) { showHelpIntro(con, f); if (con->otherHelp) - fprintf(f, " %s\n", con->otherHelp); + fprintf(f, " %s", con->otherHelp); else - fprintf(f, " %s\n", POPT_("[OPTION...]")); + fprintf(f, " %s", POPT_("[OPTION...]")); + fprintf(f, " [LIBRARIES]\n"); leftColWidth = maxArgWidth(con->options); singleTableHelp(f, con->options, leftColWidth); } @@ -292,8 +293,7 @@ void poptPrintUsage(poptContext con, FILE * f, int flags) { if (cursor > 79) fprintf(f, "\n "); fprintf(f, " %s", con->otherHelp); } - - fprintf(f, "\n"); + fprintf(f, "\n [LIBRARIES]\n"); } void poptSetOtherOptionHelp(poptContext con, const char * text) { -- 2.39.5