ipcalc applet by Stephan Linz and Jordan Crouse
[platform/upstream/busybox.git] / include / usage.h
index c140a88..b741360 100644 (file)
 #define ip_full_usage \
        "not written yet"
 
+#ifndef CONFIG_FEATURE_IPCALC_FANCY
+#define ipcalc_trivial_usage \
+       "[--broadcast] [--netmask] [--network] ipaddr <netmask>"
+
+#define ipcalc_full_usage \
+       "Calculate IP network settings from a IP address\n\n" \
+       "Options:\n" \
+       "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \
+       "\t-n\t--netmask\tDisplay default netmask for IP.\n" \
+       "\t-w\t--network\tDisplay calculated network address." 
+#else
+#define ipcalc_trivial_usage \
+       "[OPTION]... ipaddr <netmask>"
+
+#define ipcalc_full_usage \
+       "Calculate IP network settings from a IP address\n\n" \
+       "Options:\n" \
+       "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \
+       "\t-n\t--netmask\tDisplay default netmask for IP.\n" \
+       "\t-w\t--network\tDisplay calculated network address.\n" \
+       "\t-h\t--hostname\tDisplay first resolved host name.\n" \
+       "\t-s\t--silent\tDon't ever display error messages." 
+#endif
+
+#define ipcalc_notes_usage \
+       "ipcalc provides a simple way to calculate IP information for\n" \
+       "a host. The various options specify what information ipcalc\n" \
+       "should display on standard out. Multiple options may be\n" \
+       "specified.\n"
+
 #define kill_trivial_usage \
        "[-signal] process-id [process-id ...]"
 #define kill_full_usage \