aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipcalc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcalc.c')
-rw-r--r--src/ipcalc.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/ipcalc.c b/src/ipcalc.c
index fc8d3d5c..b85f103e 100644
--- a/src/ipcalc.c
+++ b/src/ipcalc.c
@@ -17,11 +17,17 @@ int main(int argc, char ** argv) {
struct hostent * hostinfo;
char errBuf[250];
struct poptOption optionsTable[] = {
- { "broadcast", '\0', 0, &showBroadcast, 0 },
- { "hostname", '\0', 0, &showHostname, 0 },
- { "netmask", '\0', 0, &showNetmask, 0 },
- { "network", '\0', 0, &showNetwork, 0 },
- { "silent", '\0', 0, &beSilent, 0 },
+ { "broadcast", '\0', 0, &showBroadcast, 0,
+ "Display calculated broadcast address", },
+ { "hostname", '\0', 0, &showHostname, 0,
+ "Show hostname determined via DNS" },
+ { "netmask", '\0', 0, &showNetmask, 0,
+ "Display default netmask for IP (class A, B, or C)" },
+ { "network", '\0', 0, &showNetwork, 0,
+ "Display calculated network address", },
+ { "silent", '\0', 0, &beSilent, 0,
+ "Don't ever display error messages " },
+ POPT_AUTOHELP
{ NULL, '\0', 0, 0, 0 },
};