summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2007-04-10 19:00:08 +0000
committerBernhard Reutner-Fischer2007-04-10 19:00:08 +0000
commitf73cac8d3d94fbb4e507059a6ebe369e9aaa49b8 (patch)
tree20f602d3b2b322196ab9b7358b9d8c9b63a547d3 /include
parente87d7955f8130040a575f2f48962471a27ccc964 (diff)
downloadbusybox-f73cac8d3d94fbb4e507059a6ebe369e9aaa49b8.zip
busybox-f73cac8d3d94fbb4e507059a6ebe369e9aaa49b8.tar.gz
- forgot this hunk that corrects the usage text of ip
Diffstat (limited to 'include')
-rw-r--r--include/usage.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/include/usage.h b/include/usage.h
index 048dcbd..d196afc 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -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 \