Merge pull request #990 from mwalker33/cliparser

Cliparser
This commit is contained in:
Iceman
2020-10-03 11:13:13 +02:00
committed by GitHub
2 changed files with 27 additions and 15 deletions

View File

@@ -4270,10 +4270,15 @@ static void arg_cat_optionv(char *dest,
}
if (datatype) {
if (longopts)
/* if (longopts)
arg_cat(&dest, "=", &ndest);
else if (shortopts)
arg_cat(&dest, " ", &ndest);
*/
if (longopts)
arg_cat(&dest, " ", &ndest);
else if (shortopts)
arg_cat(&dest, " ", &ndest);
if (optvalue) {
arg_cat(&dest, "[", &ndest);