public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/11275] New: Don't print the full usage after command line error
@ 2010-02-12  1:32 jistone at redhat dot com
  2010-02-19 22:13 ` [Bug translator/11275] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2010-02-12  1:32 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/11275] Don't print the full usage after command line error
  2010-02-12  1:32 [Bug translator/11275] New: Don't print the full usage after command line error jistone at redhat dot com
@ 2010-02-19 22:13 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2010-02-19 22:13 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2010-02-19 22:13 -------
commit 83b38ce

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-19 22:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-12  1:32 [Bug translator/11275] New: Don't print the full usage after command line error jistone at redhat dot com
2010-02-19 22:13 ` [Bug translator/11275] " fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).