]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
iproute2: trivial fix of ip link syntax in manpage
authorAndreas Henriksson <andreas@fatal.se>
Mon, 21 May 2012 13:48:06 +0000 (15:48 +0200)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 21 May 2012 21:11:58 +0000 (14:11 -0700)
Reported by Ivan Vilata i Balaguer <ivan@selidor.net>
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>
man/man8/ip-link.8
man/man8/ip-link.8.in

index 72f4cfd68036536f3ff74d048deaaea9e7981fe9..24d2ec78fce07f867a80b33ed5762ab964f1db6c 100644 (file)
@@ -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
index c4fa8c1ad791f5e375fbe9c6f16fe67daa0fbb81..9386cc6489d9bcd1a5ce2eeef6d81ccf1d6d3f6c 100644 (file)
@@ -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