ovn-nbctl: Simplify documentation for lport-set-macs.
authorBen Pfaff <blp@nicira.com>
Tue, 21 Apr 2015 17:01:13 +0000 (10:01 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 21 Apr 2015 23:30:50 +0000 (16:30 -0700)
Elsewhere, I think we just write ... to indicate that there can be more
than one, and let it be understood otherwise.

I want to add a "lport-set-port-security" command that has a similar format
and don't want to use up extra vertical space to mention that you can have
more than one argument.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ovn/ovn-nbctl.8.xml
ovn/ovn-nbctl.c

index 477db7a..32fd165 100644 (file)
         each key-value pair.
       </dd>
 
-      <dt><code>lport-set-macs</code> <var>lport</var> [<var>mac</var>] [<var>mac</var>] [...]</dt>
+      <dt><code>lport-set-macs</code> <var>lport</var> [<var>mac</var>]...</dt>
       <dd>
         Sets the MACs associated with <var>lport</var> to
         <var>mac</var>.  Multiple MACs may be sets by using multiple
index 02dc0ad..61ec1e9 100644 (file)
@@ -70,9 +70,8 @@ Logical port commands:\n\
                             set or delete an external-id on LPORT\n\
   lport-get-external-id LPORT [KEY]\n\
                             list one or all external-ids on LPORT\n\
-  lport-set-macs LPORT [MAC] [MAC] [...]\n\
-                            set MAC addresses for LPORT. Specify more\n\
-                            than one using additional arguments.\n\
+  lport-set-macs LPORT [MAC]...\n\
+                            set MAC addresses for LPORT.\n\
   lport-get-macs LPORT      get a list of MAC addresses on LPORT\n\
   lport-get-up LPORT        get state of LPORT ('up' or 'down')\n\
 \n\
@@ -624,7 +623,7 @@ static const struct ovs_cmdl_command all_commands[] = {
     },
     {
         .name = "lport-set-macs",
-        .usage = "LPORT [MAC] [MAC] [...]",
+        .usage = "LPORT [MAC]...",
         .min_args = 1,
         /* Accept however many arguments the system will allow. */
         .max_args = INT_MAX,