From 52c96fe09a4b4d5401753c1c1854042bd159b58e Mon Sep 17 00:00:00 2001
From: dd
Date: Sun, 7 Nov 2004 04:32:51 +0000
Subject: Make the usage message match reality about -h and -w.
---
usr.sbin/rpcbind/rpcbind.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
(limited to 'usr.sbin/rpcbind')
diff --git a/usr.sbin/rpcbind/rpcbind.c b/usr.sbin/rpcbind/rpcbind.c
index ec8daca..46370ec 100644
--- a/usr.sbin/rpcbind/rpcbind.c
+++ b/usr.sbin/rpcbind/rpcbind.c
@@ -699,7 +699,12 @@ parseargs(int argc, char *argv[])
{
int c;
- while ((c = getopt(argc, argv, "dwah:ilLs")) != -1) {
+#ifdef WARMSTART
+#define WSOP "w"
+#else
+#define WSOP ""
+#endif
+ while ((c = getopt(argc, argv, "adh:iLls" WSOP)) != -1) {
switch (c) {
case 'a':
doabort = 1; /* when debugging, do an abort on */
@@ -735,7 +740,9 @@ parseargs(int argc, char *argv[])
break;
#endif
default: /* error */
- fprintf(stderr, "usage: rpcbind [-Idwils]\n");
+ fprintf(stderr,
+ "usage: rpcbind [-adiLls%s] [-h bindip]\n",
+ WSOP);
exit (1);
}
}
@@ -744,6 +751,7 @@ parseargs(int argc, char *argv[])
"-a (abort) specified without -d (debugging) -- ignored.\n");
doabort = 0;
}
+#undef WSOP
}
void
--
cgit v1.1