Bug 61758 - up2date-2.7.60-7.x.2 - bad-looking --usage
Summary: up2date-2.7.60-7.x.2 - bad-looking --usage
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: python-clap
Version: 7.3
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Adrian Likins
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On: 62234
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-24 08:41 UTC by James Manning
Modified: 2015-01-07 23:55 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-09-02 21:01:07 UTC
Embargoed:


Attachments (Terms of Use)

Description James Manning 2002-03-24 08:41:10 UTC
looks like --usage (calls to python-popt it appears, but I don't see python-
popt in the component list to select it - ugh) intends to do the nice printing 
of options, indented, line-wrapped, etc. but the last line looks crappy :)

[root@bp6 up2date_client]# up2date --usage
Usage: up2date [--configure] [--src] [--nosrc] [--dbpath=<dir>] [--justdb]
        [-k STRING] [--nosig] [--nox] [--showall] [--solvedeps=<deps>]
        [--tmpdir=<directory>] [--version] [--show-channels]
        [--whatprovides=<deps>] [--channel=STRING] [--gpg-flags] [--nodownload] 
[OPTIONS] <packages>

Comment 1 Alexei Podtelezhnikov 2002-03-24 23:04:16 UTC
Looks nice here. I don't see your problem. Are you sure you're up2date?

Comment 2 James Manning 2002-03-24 23:08:22 UTC
compare your up2date version to mine :) this slew of bugs are prob. just hiccup 
ones, just ones I wanted to make sure don't make it out.

Comment 3 Adrian Likins 2002-03-25 23:48:56 UTC
hmm, looks okay to me. Fairly low priority either way ;->

I'll bounce it over to python-popt.

Comment 4 James Manning 2002-05-15 19:40:36 UTC
looks like it was just that my terminal width wasn't wide enough - anything
narrower than 100 columns and the last line wraps (still on 7.3,
up2date-2.7.86-7.x.3)

Since the relevant line from wrapper.py is:

argObj = clap.Clap(optionsTable, "[OPTIONS] <packages>", aliasing = 1)

I'm going to tag this python-clap and see if it's fixable over there, but I'd
tend to doubt it since the --usage output doesn't appear to be $COLUMNS-aware
anyway - anyone can feel free to NOTABUG this - I may do so myself after another
week of lingering :)

fwiw, normal 7.3 box

up2date-2.7.86-7.x.3
python-popt-0.8.8-7.x.2
python-clap-1.0.0-3


Comment 5 Mihai Ibanescu 2002-07-25 18:45:42 UTC
We are slowly migrating to a different command-line approach, python-popt will
go away.


Note You need to log in before you can comment on or make changes to this bug.