1 |
/* whois/main.c |
/* whois/main.c |
2 |
Copyright (C) 1998, 2000 Free Software Foundation, Inc. |
Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
5 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
17 |
*/ |
*/ |
18 |
|
|
19 |
#include <config.h> |
#include <config.h> |
|
#include <version.h> |
|
20 |
#include <fnmatch.h> |
#include <fnmatch.h> |
21 |
#include <getopt.h> |
#include <getopt.h> |
22 |
#include <sys/stat.h> |
#include <sys/stat.h> |
182 |
"-c, --config-file Specify alternate config file.\n" |
"-c, --config-file Specify alternate config file.\n" |
183 |
"-h, --host, --server Specify whois server.\n"); |
"-h, --host, --server Specify whois server.\n"); |
184 |
} else if (version) { |
} else if (version) { |
185 |
fprintf(stderr, "%s %s\n", inetutils_package, inetutils_version); |
fprintf(stderr, "%s %s\n", PACKAGE_NAME, PACKAGE_VERSION); |
186 |
} else if ((optind + 1) != argc) { |
} else if ((optind + 1) != argc) { |
187 |
fprintf (stderr, "There must be exactly one non-option argument.\n"); |
fprintf (stderr, "There must be exactly one non-option argument.\n"); |
188 |
exit(1); |
exit(1); |