[git commit] ipcalc: trim help text

Denys Vlasenko vda.linux at googlemail.com
Mon Aug 7 22:49:48 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=73adef14b25533b71238362da75bfb482d43d98b
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ipcalc.c | 26 +++++++-------------------
 1 file changed, 7 insertions(+), 19 deletions(-)

diff --git a/networking/ipcalc.c b/networking/ipcalc.c
index 4f192e0..8393782 100644
--- a/networking/ipcalc.c
+++ b/networking/ipcalc.c
@@ -39,26 +39,14 @@
 //usage:       "[OPTIONS] ADDRESS"
 //usage:       IF_FEATURE_IPCALC_FANCY("[/PREFIX]") " [NETMASK]"
 //usage:#define ipcalc_full_usage "\n\n"
-//usage:       "Calculate IP network settings from a IP address\n"
-//usage:	IF_FEATURE_IPCALC_LONG_OPTIONS(
-//usage:     "\n	-b,--broadcast	Display calculated broadcast address"
-//usage:     "\n	-n,--network	Display calculated network address"
-//usage:     "\n	-m,--netmask	Display default netmask for IP"
+//usage:       "Calculate and display network settings from IP address\n"
+//usage:     "\n	-b	Broadcast address"
+//usage:     "\n	-n	Network address"
+//usage:     "\n	-m	Default netmask for IP"
 //usage:	IF_FEATURE_IPCALC_FANCY(
-//usage:     "\n	-p,--prefix	Display the prefix for IP/NETMASK"
-//usage:     "\n	-h,--hostname	Display first resolved host name"
-//usage:     "\n	-s,--silent	Don't ever display error messages"
-//usage:	)
-//usage:	)
-//usage:	IF_NOT_FEATURE_IPCALC_LONG_OPTIONS(
-//usage:     "\n	-b	Display calculated broadcast address"
-//usage:     "\n	-n	Display calculated network address"
-//usage:     "\n	-m	Display default netmask for IP"
-//usage:	IF_FEATURE_IPCALC_FANCY(
-//usage:     "\n	-p	Display the prefix for IP/NETMASK"
-//usage:     "\n	-h	Display first resolved host name"
-//usage:     "\n	-s	Don't ever display error messages"
-//usage:	)
+//usage:     "\n	-p	Prefix for IP/NETMASK"
+//usage:     "\n	-h	Resolved host name"
+//usage:     "\n	-s	No error messages"
 //usage:	)
 
 #include "libbb.h"


More information about the busybox-cvs mailing list