use '=' iff long option (#108924).

CVS patchset: 7016
CVS date: 2003/12/26 17:56:05
This commit is contained in:
jbj 2003-12-26 17:56:05 +00:00
parent c419d9436e
commit 60d50a708f
1 changed files with 2 additions and 2 deletions

View File

@ -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: