Skip to content

Add --version option and fix some bugs in show_usage()

Ben Hutchings netdev 1 version In review

Get series with b4
b4 am 1298315809.2608.68.camel@bwh-desktop

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ethtool: Split show_usage() into two functionsethtool.c+73 -710 replies
2/5ethtool: Report an error if given an unrecognised optionethtool.c+3 -20 replies
3/5ethtool: Allow for long options with no short option and without a device nameethtool.c+14 -90 replies
4/5ethtool: Indent the no-options usage line consistently with the othersethtool.c+2 -10 replies
5/5ethtool: Add --version optionethtool.8.in ethtool.c+11 -05 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH ethtool 0/5] Add --version option and fix some bugs in show_usage()

Every command-line tool needs a --version option, right? And while looking at the existing option parsing and usage messages I found and fixed some bugs.

Ben.

Ben Hutchings (5):
ethtool: Split show_usage() into two functions
ethtool: Report an error if given an unrecognised option
ethtool: Allow for long options with no short option and without a
device name
ethtool: Indent the no-options usage line consistently with the
others
ethtool: Add --version option

 ethtool.8.in |    5 ++
 ethtool.c    |  165 +++++++++++++++++++++++++++++++--------------------------
 2 files changed, 95 insertions(+), 75 deletions(-)
Signature · 7 lines
1.7.3.4


-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.