This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/11275] New: Don't print the full usage after command line error


When stap gets a bad argument on the command line, we print a relevant error
message and show the full usage text (which is currently 52 lines).  My
terminals are almost always shorter than that, and so the error message is
pushed into the scrollback.  It's even more annoying if I'm on a console with no
scrolling.

Better would be to print the error message followed by a simple "Try 'stap -h'
for more information."

PS: we should also have --help as an alias for -h

PPS: usage should go to stdout so "stap -h | less" does the right thing

-- 
           Summary: Don't print the full usage after command line error
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jistone at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11275

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]