From 60d50a708f2a953cb4338c05b2bd766feec11970 Mon Sep 17 00:00:00 2001 From: jbj Date: Fri, 26 Dec 2003 17:56:05 +0000 Subject: [PATCH] use '=' iff long option (#108924). CVS patchset: 7016 CVS date: 2003/12/26 17:56:05 --- popt/popthelp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popt/popthelp.c b/popt/popthelp.c index c8b98ab..240692f 100644 --- a/popt/popthelp.c +++ b/popt/popthelp.c @@ -305,7 +305,7 @@ static void singleOptionHelp(FILE * fp, int maxLeftCol, default: /*@innerbreak@*/ break; } - *le++ = '='; + *le++ = (opt->longName != NULL ? '=' : ' '); if (negate) *le++ = '~'; /*@-formatconst@*/ le += sprintf(le, (ops ? "0x%lx" : "%ld"), aLong); @@ -319,7 +319,7 @@ static void singleOptionHelp(FILE * fp, int maxLeftCol, case POPT_ARG_FLOAT: case POPT_ARG_DOUBLE: case POPT_ARG_STRING: - *le++ = '='; + *le++ = (opt->longName != NULL ? '=' : ' '); strcpy(le, argDescrip); le += strlen(le); break; default: -- 2.7.4