svn commit: trunk/busybox/include

aldot at busybox.net aldot at busybox.net
Tue Apr 10 19:00:10 UTC 2007


Author: aldot
Date: 2007-04-10 12:00:08 -0700 (Tue, 10 Apr 2007)
New Revision: 18388

Log:
- forgot this hunk that corrects the usage text of ip


Modified:
   trunk/busybox/include/usage.h


Changeset:
Modified: trunk/busybox/include/usage.h
===================================================================
--- trunk/busybox/include/usage.h	2007-04-10 18:43:27 UTC (rev 18387)
+++ trunk/busybox/include/usage.h	2007-04-10 19:00:08 UTC (rev 18388)
@@ -1579,12 +1579,24 @@
 	USE_SELINUX( \
        "\n	-Z	Set security context of copy" \
 	)
-
+/* would need to make the " | " optional depending on more than one selected */
 #define ip_trivial_usage \
-       "[OPTIONS] {address | link | route | tunnel | rule} {COMMAND}"
+       "[OPTIONS] {" \
+	USE_FEATURE_IP_ADDRESS("address | ") \
+	USE_FEATURE_IP_ROUTE("route | ") \
+	USE_FEATURE_IP_LINK("link | ") \
+	USE_FEATURE_IP_TUNNEL("tunnel | ") \
+	USE_FEATURE_IP_RULE("rule") \
+	"} {COMMAND}"
 #define ip_full_usage \
        "ip [OPTIONS] OBJECT {COMMAND}\n" \
-       "where  OBJECT := {link | addr | route | tunnel |rule}\n" \
+       "where  OBJECT := {" \
+	USE_FEATURE_IP_ADDRESS("address | ") \
+	USE_FEATURE_IP_ROUTE("route | ") \
+	USE_FEATURE_IP_LINK("link | ") \
+	USE_FEATURE_IP_TUNNEL("tunnel | ") \
+	USE_FEATURE_IP_RULE("rule") \
+	"}\n" \
        "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
 
 #define ipaddr_trivial_usage \




More information about the busybox-cvs mailing list