This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11275] New: Don't print the full usage after command line error
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 12 Feb 2010 01:32:33 -0000
- Subject: [Bug translator/11275] New: Don't print the full usage after command line error
- Reply-to: sourceware-bugzilla at sourceware dot org
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.