ifconfig.8: Update to show '-d' and '-u' is mutually exclusive
authorAaron LI <aly@aaronly.me>
Fri, 26 Jun 2020 14:21:56 +0000 (22:21 +0800)
committerAaron LI <aly@aaronly.me>
Fri, 26 Jun 2020 14:53:00 +0000 (22:53 +0800)
sbin/ifconfig/ifconfig.8
sbin/ifconfig/ifconfig.c

index 8486054..78df0d9 100644 (file)
 .Nm
 .Fl a
 .Op Fl L
-.Op Fl d
+.Oo
+.Fl d |
+.Fl u
+.Oc
 .Op Fl m
-.Op Fl u
 .Op Fl v
 .Op Ar address_family
 .Nm
 .Fl l
-.Op Fl d
-.Op Fl u
+.Oo
+.Fl d |
+.Fl u
+.Oc
 .Op Ar address_family
 .Nm
 .Op Fl L
-.Op Fl d
+.Oo
+.Fl d |
+.Fl u
+.Oc
 .Op Fl k
 .Op Fl m
-.Op Fl u
 .Op Fl v
 .Op Fl C
 .Nm
index b0a1111..483e36e 100644 (file)
@@ -146,9 +146,9 @@ usage(void)
        "                [address [dest_address]] [parameters]\n"
        "       ifconfig [-n] interface create\n"
        "       ifconfig [-n] interface destroy\n"
-       "       ifconfig -a %s[-d] [-m] [-u] [-v] [address_family]\n"
-       "       ifconfig -l [-d] [-u] [address_family]\n"
-       "       ifconfig %s[-d] [-m] [-u] [-v]\n",
+       "       ifconfig -a %s[-d | -u] [-m] [-v] [address_family]\n"
+       "       ifconfig -l [-d | -u] [address_family]\n"
+       "       ifconfig %s[-d | -u] [-m] [-v]\n",
                options, options, options);
        exit(1);
 }