X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fopt-help.c;h=fdd3ec74108a9e5d543431de306a7c7a500b2c55;hb=ec6703bb4d58e504fde8ea8429f9b26ab6632696;hp=f71fec14d93bef28eafaeadcc8c6f8982e1be9d7;hpb=b53fdc2f88be1f12ef0700594913e4f7911aa29d;p=libucw.git diff --git a/ucw/opt-help.c b/ucw/opt-help.c index f71fec14..fdd3ec74 100644 --- a/ucw/opt-help.c +++ b/ucw/opt-help.c @@ -33,10 +33,15 @@ static void opt_help_scan_item(struct help *h, struct opt_precomputed *opt) if (!item->help) return; + bool force_col1 = 0; if (item->cls == OPT_CL_HELP) { - struct help_line *l = GARY_PUSH(h->lines); - l->extra = item->help; - return; + if (item->flags & OPT_HELP_COL) { + force_col1 = 1; + } else { + struct help_line *l = GARY_PUSH(h->lines); + l->extra = item->help; + return; + } } if (item->letter >= OPT_POSITIONAL_TAIL) @@ -50,7 +55,7 @@ static void opt_help_scan_item(struct help *h, struct opt_precomputed *opt) if (eol) *eol++ = 0; - int field = (l == first ? 1 : 0); + int field = (l == first && !force_col1 ? 1 : 0); char *f = text; while (f) { char *tab = strchr(f, '\t');