mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
Make the usage message match reality about -h and -w.
This commit is contained in:
parent
1327f24b9e
commit
cb4c0b80e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137327
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user