From 4e4eb9b9633136a6dfc2937149245b538bdafd0b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 12 Apr 2002 21:07:07 +0000 Subject: quit stripping binaries --- src/ipcalc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/ipcalc.c') diff --git a/src/ipcalc.c b/src/ipcalc.c index 56b5ae87..ad279587 100644 --- a/src/ipcalc.c +++ b/src/ipcalc.c @@ -10,7 +10,7 @@ * * Authors: * Erik Troan - * Preston Brown */ @@ -290,6 +290,11 @@ int main(int argc, const char **argv) { } poptFreeContext(optCon); + + if (!(showNetmask|showPrefix|showBroadcast|showNetwork|showHostname)) { + poptPrintHelp(optCon, stderr, 0); + return 1; + } /* we know what we want to display now, so display it. */ -- cgit v1.2.1