diff options
author | jbj <devnull@localhost> | 2003-12-26 17:56:05 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-12-26 17:56:05 +0000 |
commit | 60d50a708f2a953cb4338c05b2bd766feec11970 (patch) | |
tree | 26043ec180d022a96777351668588439270517f2 | |
parent | c419d9436ee8f2dff8d0647888f39029af6a9eb0 (diff) | |
download | rpm-60d50a708f2a953cb4338c05b2bd766feec11970.tar.gz rpm-60d50a708f2a953cb4338c05b2bd766feec11970.tar.bz2 rpm-60d50a708f2a953cb4338c05b2bd766feec11970.zip |
use '=' iff long option (#108924).
CVS patchset: 7016
CVS date: 2003/12/26 17:56:05
-rw-r--r-- | popt/popthelp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/popt/popthelp.c b/popt/popthelp.c index c8b98ab43..240692f2a 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: |