aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-10 15:05:36 +0000
committerErik Troan <ewt@redhat.com>1999-08-10 15:05:36 +0000
commitee96d1d3a2e6f9563016585bc7ed10678f2bd577 (patch)
tree2fccd9eba84cdfd4e6fb5b26a9ec04bc9748b2b6 /src
parent6732d6f4713960d6a15210a8839a65cc98c4854b (diff)
downloadinitscripts-ee96d1d3a2e6f9563016585bc7ed10678f2bd577.tar
initscripts-ee96d1d3a2e6f9563016585bc7ed10678f2bd577.tar.gz
initscripts-ee96d1d3a2e6f9563016585bc7ed10678f2bd577.tar.bz2
initscripts-ee96d1d3a2e6f9563016585bc7ed10678f2bd577.tar.xz
initscripts-ee96d1d3a2e6f9563016585bc7ed10678f2bd577.zip
added help/usage messages
Diffstat (limited to 'src')
-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 },
};