]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Fix rtsold's usage message
authorngie <ngie@FreeBSD.org>
Fri, 30 Oct 2015 07:36:43 +0000 (07:36 +0000)
committerngie <ngie@FreeBSD.org>
Fri, 30 Oct 2015 07:36:43 +0000 (07:36 +0000)
- Remove -a from the usage message example dealing with specific
  interfaces. -a only makes sense when not specifying an interface,
  such that it's to be run on all interfaces
- Fix the pidfile option (it's -p, not -P)
- Change `interfaces` to `interface` to match the manpage

MFC after: 3 days
PR: 173744
Sponsored by: EMC / Isilon Storage Division

usr.sbin/rtsold/rtsold.c

index 85ee133e9b6c9f2154f4e5088eeb27ac9dc2316f..b251482fed50f1bcb0e35e5da6ae6ad74c984a09 100644 (file)
@@ -779,15 +779,15 @@ static void
 usage(void)
 {
 #ifndef SMALL
-       fprintf(stderr, "usage: rtsold [-adDfFm1] [-O script-name] "
-           "[-P pidfile] [-R script-name] interfaces...\n");
        fprintf(stderr, "usage: rtsold [-dDfFm1] [-O script-name] "
-           "[-P pidfile] [-R script-name] -a\n");
+           "[-p pidfile] [-R script-name] interface ...\n");
+       fprintf(stderr, "usage: rtsold [-dDfFm1] [-O script-name] "
+           "[-p pidfile] [-R script-name] -a\n");
 #else
        fprintf(stderr, "usage: rtsol [-dDF] [-O script-name] "
-           "[-P pidfile] [-R script-name] interfaces...\n");
+           "[-p pidfile] [-R script-name] interface ...\n");
        fprintf(stderr, "usage: rtsol [-dDF] [-O script-name] "
-           "[-P pidfile] [-R script-name] -a\n");
+           "[-p pidfile] [-R script-name] -a\n");
 #endif
 }