X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2Fusage.c;h=12f44a48752e0e0d4e0d722c74b7513561334733;hp=353d59bc48542d8423ddc3c437ed36146488ec37;hb=7d1f0c73e4d321561abb74f82c8be97f10d69836;hpb=6ac981db899685916603fd2e12dcbbd760a2b294 diff --git a/ccan/opt/usage.c b/ccan/opt/usage.c index 353d59bc..12f44a48 100644 --- a/ccan/opt/usage.c +++ b/ccan/opt/usage.c @@ -110,7 +110,7 @@ static char *add_desc(char *base, size_t *len, size_t *max, base = add_str(base, len, max, opt->names); off = strlen(opt->names); - if (opt->type == OPT_HASARG + if ((opt->type & OPT_HASARG) && !strchr(opt->names, ' ') && !strchr(opt->names, '=')) { base = add_str(base, len, max, " ");