aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/usage.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/include/usage.h b/include/usage.h
index 048dcbdde..d196afcbf 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1579,12 +1579,24 @@
1579 USE_SELINUX( \ 1579 USE_SELINUX( \
1580 "\n -Z Set security context of copy" \ 1580 "\n -Z Set security context of copy" \
1581 ) 1581 )
1582 1582/* would need to make the " | " optional depending on more than one selected */
1583#define ip_trivial_usage \ 1583#define ip_trivial_usage \
1584 "[OPTIONS] {address | link | route | tunnel | rule} {COMMAND}" 1584 "[OPTIONS] {" \
1585 USE_FEATURE_IP_ADDRESS("address | ") \
1586 USE_FEATURE_IP_ROUTE("route | ") \
1587 USE_FEATURE_IP_LINK("link | ") \
1588 USE_FEATURE_IP_TUNNEL("tunnel | ") \
1589 USE_FEATURE_IP_RULE("rule") \
1590 "} {COMMAND}"
1585#define ip_full_usage \ 1591#define ip_full_usage \
1586 "ip [OPTIONS] OBJECT {COMMAND}\n" \ 1592 "ip [OPTIONS] OBJECT {COMMAND}\n" \
1587 "where OBJECT := {link | addr | route | tunnel |rule}\n" \ 1593 "where OBJECT := {" \
1594 USE_FEATURE_IP_ADDRESS("address | ") \
1595 USE_FEATURE_IP_ROUTE("route | ") \
1596 USE_FEATURE_IP_LINK("link | ") \
1597 USE_FEATURE_IP_TUNNEL("tunnel | ") \
1598 USE_FEATURE_IP_RULE("rule") \
1599 "}\n" \
1588 "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" 1600 "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
1589 1601
1590#define ipaddr_trivial_usage \ 1602#define ipaddr_trivial_usage \