aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-04-13 19:27:20 +0000
committerEric Andersen <andersen@codepoet.org>2004-04-13 19:27:20 +0000
commit3561b017ce5e2b9abeff268c4891440e83c2dd73 (patch)
tree5ca7ff57251794e8e3e9eed9190d6f99e3650eb9
parenta4375047d3da6d4d08f78647f1b5b6b6fc44e5c3 (diff)
downloadbusybox-w32-3561b017ce5e2b9abeff268c4891440e83c2dd73.tar.gz
busybox-w32-3561b017ce5e2b9abeff268c4891440e83c2dd73.tar.bz2
busybox-w32-3561b017ce5e2b9abeff268c4891440e83c2dd73.zip
Fix incorrect ipcalc usage text
-rw-r--r--include/usage.h26
1 files changed, 10 insertions, 16 deletions
diff --git a/include/usage.h b/include/usage.h
index 15e60d1d3..462d09eee 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1305,29 +1305,23 @@
1305 "\t\t\t[ label STRING ] [ scope SCOPE-ID ]\n" \ 1305 "\t\t\t[ label STRING ] [ scope SCOPE-ID ]\n" \
1306 "\t\t\tSCOPE-ID := [ host | link | global | NUMBER ]" 1306 "\t\t\tSCOPE-ID := [ host | link | global | NUMBER ]"
1307 1307
1308#ifndef CONFIG_FEATURE_IPCALC_FANCY 1308#ifdef CONFIG_FEATURE_IPCALC_FANCY
1309#define ipcalc_trivial_usage \ 1309 #define XUSAGE_IPCALC_FANCY(a) a
1310 "[--broadcast] [--netmask] [--network] ipaddr <netmask>"
1311
1312#define ipcalc_full_usage \
1313 "Calculate IP network settings from a IP address\n\n" \
1314 "Options:\n" \
1315 "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \
1316 "\t-n\t--netmask\tDisplay default netmask for IP.\n" \
1317 "\t-w\t--network\tDisplay calculated network address."
1318#else 1310#else
1311 #define XUSAGE_IPCALC_FANCY(a)
1312#endif
1319#define ipcalc_trivial_usage \ 1313#define ipcalc_trivial_usage \
1320 "[OPTION]... ipaddr <netmask>" 1314 "[OPTION]... <ADDRESS>[[/]<NETMASK>] [NETMASK]"
1321
1322#define ipcalc_full_usage \ 1315#define ipcalc_full_usage \
1323 "Calculate IP network settings from a IP address\n\n" \ 1316 "Calculate IP network settings from a IP address\n\n" \
1324 "Options:\n" \ 1317 "Options:\n" \
1325 "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \ 1318 "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \
1326 "\t-n\t--netmask\tDisplay default netmask for IP.\n" \ 1319 "\t-n\t--network\tDisplay calculated network address.\n" \
1327 "\t-w\t--network\tDisplay calculated network address.\n" \ 1320 "\t-m\t--netmask\tDisplay default netmask for IP." \
1321 XUSAGE_IPCALC_FANCY(\
1322 "\n\t-p\t--prefix\tDisplay the prefix for IP/NETMASK." \
1328 "\t-h\t--hostname\tDisplay first resolved host name.\n" \ 1323 "\t-h\t--hostname\tDisplay first resolved host name.\n" \
1329 "\t-s\t--silent\tDon't ever display error messages." 1324 "\t-s\t--silent\tDon't ever display error messages.")
1330#endif
1331 1325
1332#define iplink_trivial_usage \ 1326#define iplink_trivial_usage \
1333 "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }" 1327 "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }"