diff options
author | Jeff Garzik <jeff@garzik.org> | 2009-03-23 04:58:11 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-03-23 04:58:11 -0400 |
commit | 669ba5cadfb15842e90d8aa7ba5a575f7a457b3e (patch) | |
tree | 51471dd45de968fcab6ad80b956d5f8467448e3f /ethtool.c | |
parent | 7336e8a6a587802ca72dcf5f509696d96b9d6f23 (diff) | |
download | ethtool-669ba5cadfb15842e90d8aa7ba5a575f7a457b3e.tar.gz |
Command line help does not require DEVNAME on command line.
Reflect this in usage text. Patch via Robert Scheck
<robert@fedoraproject.org>, possibly other sources as well?
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'ethtool.c')
-rw-r--r-- | ethtool.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -213,8 +213,9 @@ static void show_usage(int badarg) "Usage:\n" "ethtool DEVNAME\tDisplay standard information about device\n"); for (i = 0; args[i].srt; i++) { - fprintf(stdout, " ethtool %s|%s DEVNAME\t%s\n%s", + fprintf(stdout, " ethtool %s|%s %s\t%s\n%s", args[i].srt, args[i].lng, + strstr(args[i].srt, "-h") ? "\t" : "DEVNAME", args[i].help, args[i].opthelp ? args[i].opthelp : ""); } |