diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-10 09:19:34 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-10 09:19:34 +0000 |
commit | 8d646af581627781d0f44bd773f64304834dd2e7 (patch) | |
tree | d6dac94023a6f3bfab88fb797e8cd641b0e912b2 /sbin/reboot | |
parent | 5bcb8532a8e86dfd432dd00a52d55465a98803ec (diff) | |
download | src-8d646af581627781d0f44bd773f64304834dd2e7.tar.gz src-8d646af581627781d0f44bd773f64304834dd2e7.zip |
Sync program's usage() with manpage's SYNOPSIS.
Notes
Notes:
svn path=/head/; revision=141611
Diffstat (limited to 'sbin/reboot')
-rw-r--r-- | sbin/reboot/reboot.8 | 20 | ||||
-rw-r--r-- | sbin/reboot/reboot.c | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8 index 2b9cd401aa4d..39022ab90ae9 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 195c094abb98..692364057cea 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); } |