# HG changeset patch # User Matti Hamalainen # Date 1672384367 -7200 # Node ID 56594b498180e7701f5ebb214e6c8e4d43ec3201 # Parent feadd3678d2ebfd66686027447d04cb05282e8eb Adjust short option cosmetics in help. diff -r feadd3678d2e -r 56594b498180 th_args.c --- a/th_args.c Wed Dec 21 17:23:10 2022 +0200 +++ b/th_args.c Fri Dec 30 09:12:47 2022 +0200 @@ -271,8 +271,9 @@ } else { - snprintf(fmtBuf, sizeof(fmtBuf), " -%c,", - opt->o_short); + snprintf(fmtBuf, sizeof(fmtBuf), " -%c%s", + opt->o_short, + hasLongOpt ? "," : ""); } *optWidth = strlen(fmtBuf);