Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2018 00:34:55 +0000 (UTC)
From:      Yuri Pankov <yuripv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341168 - stable/12/sbin/bectl
Message-ID:  <201811290034.wAT0YtOS034703@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuripv
Date: Thu Nov 29 00:34:55 2018
New Revision: 341168
URL: https://svnweb.freebsd.org/changeset/base/341168

Log:
  MFC r340974:
  bectl: sync usage with man page, removing stray multibyte characters
  in the process.
  
  PR:             233526
  Submitted by:   tigersharke@gmail.com (original version)
  Reviewed by:    kevans
  Differential revision:  https://reviews.freebsd.org/D18335

Modified:
  stable/12/sbin/bectl/bectl.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/bectl/bectl.c
==============================================================================
--- stable/12/sbin/bectl/bectl.c	Thu Nov 29 00:28:08 2018	(r341167)
+++ stable/12/sbin/bectl/bectl.c	Thu Nov 29 00:34:55 2018	(r341168)
@@ -66,22 +66,24 @@ usage(bool explicit)
 	FILE *fp;
 
 	fp =  explicit ? stdout : stderr;
-	fprintf(fp,
+	fprintf(fp, "%s",
 	    "usage:\tbectl {-h | -? | subcommand [args...]}\n"
+#if SOON
+	    "\tbectl add (path)*\n"
+#endif
 	    "\tbectl activate [-t] beName\n"
-	    "\tbectl create [-e {nonActiveBe | -e beName@snapshot}] beName\n"
-	    "\tbectl create beName@snapshot\n"
+	    "\tbectl create [-r] [-e {nonActiveBe | beName@snapshot}] beName\n"
+	    "\tbectl create [-r] beName@snapshot\n"
 	    "\tbectl destroy [-F] {beName | beName@snapshot}\n"
 	    "\tbectl export sourceBe\n"
 	    "\tbectl import targetBe\n"
-#if SOON
-	    "\tbectl add (path)*\n"
-#endif
-	    "\tbectl jail [{-b | -U}] [{-o key=value | -u key}]... bootenv [utility [argument ...]]\n"
-	    "\tbectl list [-a] [-D] [-H] [-s]\n"
+	    "\tbectl jail {-b | -U} [{-o key=value | -u key}]... "
+	    "{jailID | jailName}\n"
+	    "\t      bootenv [utility [argument ...]]\n"
+	    "\tbectl list [-DHas]\n"
 	    "\tbectl mount beName [mountpoint]\n"
 	    "\tbectl rename origBeName newBeName\n"
-	    "\tbectl {ujail | unjail} ⟨jailID | jailName | bootenv)\n"
+	    "\tbectl {ujail | unjail} {jailID | jailName} bootenv\n"
 	    "\tbectl {umount | unmount} [-f] beName\n");
 
 	return (explicit ? 0 : EX_USAGE);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811290034.wAT0YtOS034703>