Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2017 03:39:36 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325206 - in head/sbin: reboot shutdown
Message-ID:  <201710310339.v9V3daYM035885@repo.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: imp
Date: Tue Oct 31 03:39:36 2017
New Revision: 325206
URL: https://svnweb.freebsd.org/changeset/base/325206

Log:
  Add -c to the usage statements.
  
  Submitted by: Maxim Konovalov

Modified:
  head/sbin/reboot/reboot.c
  head/sbin/shutdown/shutdown.c

Modified: head/sbin/reboot/reboot.c
==============================================================================
--- head/sbin/reboot/reboot.c	Tue Oct 31 03:14:35 2017	(r325205)
+++ head/sbin/reboot/reboot.c	Tue Oct 31 03:39:36 2017	(r325206)
@@ -259,8 +259,8 @@ usage(void)
 {
 
 	(void)fprintf(stderr, dohalt ?
-	    "usage: halt [-lNnpq] [-k kernel]\n" :
-	    "usage: reboot [-dlNnpqr] [-k kernel]\n");
+	    "usage: halt [-clNnpq] [-k kernel]\n" :
+	    "usage: reboot [-cdlNnpqr] [-k kernel]\n");
 	exit(1);
 }
 

Modified: head/sbin/shutdown/shutdown.c
==============================================================================
--- head/sbin/shutdown/shutdown.c	Tue Oct 31 03:14:35 2017	(r325205)
+++ head/sbin/shutdown/shutdown.c	Tue Oct 31 03:39:36 2017	(r325206)
@@ -566,7 +566,7 @@ usage(const char *cp)
 	if (cp != NULL)
 		warnx("%s", cp);
 	(void)fprintf(stderr,
-	    "usage: shutdown [-] [-h | -p | -r | -k] [-o [-n]] time [warning-message ...]\n"
+	    "usage: shutdown [-] [-c | -h | -p | -r | -k] [-o [-n]] time [warning-message ...]\n"
 	    "       poweroff\n");
 	exit(1);
 }



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201710310339.v9V3daYM035885>