netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug#673171: [PATCH] iproute2: trivial fix of ip link syntax in manpage
@ 2012-05-21 11:58 Andreas Henriksson
  2012-05-21 13:48 ` [PATCH v2] " Andreas Henriksson
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Henriksson @ 2012-05-21 11:58 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: 673171, netdev

Ivan Vilata i Balaguer <ivan@selidor.net> wrote:
> Hi, I found that the description of the `ip link add` command in the manpage
> is outdated regarding the compulsory `link DEVICE` option.  For instance, `ip
> link help` says:
>
>     Usage: ip link add [link DEV] [ name ] NAME
>     ...
>
> But the manpage still says:
>
>     ip link add link DEVICE [ name ] NAME
>
> (Trying to provide a `link` option e.g. under an LXC container can frustrate
> the creation of dummy devices which don't need an actual device.)

The syntax of the "ip link help" output was fixed in commit
"iproute2: Fix usage and man page for 'ip link'" (a22e92951d).
This updates the manpage to mark "link DEVICE" as an optional
argument there as well.

http://bugs.debian.org/673171

Signed-off-by: Andreas Henriksson <andreas@fatal.se>


diff --git a/man/man8/ip-link.8 b/man/man8/ip-link.8
index 72f4cfd..24d2ec7 100644
--- a/man/man8/ip-link.8
+++ b/man/man8/ip-link.8
@@ -23,7 +23,9 @@ ip-link \- network device configuration
 \fB\-o\fR[\fIneline\fR] }
 
 .ti -8
-.BI "ip link add link " DEVICE
+.BI "ip link add"
+.RB "[ " link
+.IR DEVICE " ]"
 .RB "[ " name " ]"
 .I NAME
 .br

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

end of thread, other threads:[~2012-05-21 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 11:58 Bug#673171: [PATCH] iproute2: trivial fix of ip link syntax in manpage Andreas Henriksson
2012-05-21 13:48 ` [PATCH v2] " Andreas Henriksson

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 NNTP newsgroup(s).