# HG changeset patch # User William Astle # Date 1331825606 21600 # Node ID d2bed389e94ac3f8297b9acb8d292f7ca125e2dc # Parent 82957c4075774c1059937168e453ccdd4f2cc8f2 Fix --help and --usage to display = correctly for long option args --usage and --help were missing the = between the long option and its argument in certain circumstances. Correct lwlib to handle these cases. diff -r 82957c407577 -r d2bed389e94a lwlib/lw_cmdline.c --- a/lwlib/lw_cmdline.c Thu Mar 15 09:27:48 2012 -0600 +++ b/lwlib/lw_cmdline.c Thu Mar 15 09:33:26 2012 -0600 @@ -177,7 +177,7 @@ } if (llist[i] -> flags & lw_cmdline_opt_doc) { - printf(" [%s%s]", llist[i] -> name, llist[i] -> arg); + printf(" [%s=%s]", llist[i] -> name, llist[i] -> arg); t = strlen(llist[i] -> name) + strlen(llist[i] -> arg) + 3; } else @@ -307,7 +307,7 @@ col++; fputc('[', stdout); } - if (noequ) + if (!noequ) { fputc('=', stdout); col++;