From 719be5d34133092608f2cb4b6a8acd6cf2c403c6 Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 10 Feb 2005 09:19:34 +0000 Subject: Sync program's usage() with manpage's SYNOPSIS. --- sbin/reboot/reboot.8 | 20 ++++++++++---------- sbin/reboot/reboot.c | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'sbin/reboot') diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8 index 2b9cd40..39022ab 100644 --- a/sbin/reboot/reboot.8 +++ b/sbin/reboot/reboot.8 @@ -39,16 +39,16 @@ .Nd stopping and restarting the system .Sh SYNOPSIS .Nm halt -.Op Fl lnqp +.Op Fl lnpq .Op Fl k Ar kernel .Nm -.Op Fl dlnqp +.Op Fl dlnpq .Op Fl k Ar kernel .Nm fasthalt -.Op Fl lnqp +.Op Fl lnpq .Op Fl k Ar kernel .Nm fastboot -.Op Fl dlnqp +.Op Fl dlnpq .Op Fl k Ar kernel .Sh DESCRIPTION The @@ -98,12 +98,6 @@ and log this themselves. .It Fl n The file system cache is not flushed. This option should probably not be used. -.It Fl q -The system is halted or restarted quickly and ungracefully, and only -the flushing of the file system cache is performed (if the -.Fl n -option is not specified). -This option should probably not be used. .It Fl p The system will turn off the power if it can. If the power down action fails, the system @@ -112,6 +106,12 @@ will halt or reboot normally, depending on whether or .Nm was called. +.It Fl q +The system is halted or restarted quickly and ungracefully, and only +the flushing of the file system cache is performed (if the +.Fl n +option is not specified). +This option should probably not be used. .El .Pp The diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 195c094..6923640 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -205,8 +205,8 @@ restart: static void usage() { - (void)fprintf(stderr, "usage: %s [-dnpq] [-k kernel]\n", - dohalt ? "halt" : "reboot"); + (void)fprintf(stderr, "usage: %s [-%slnpq] [-k kernel]\n", + getprogname(), dohalt ? "" : "d"); exit(1); } -- cgit v1.1