svn commit: r340974 - head/sbin/bectl

Yuri Pankov yuripv at FreeBSD.org
Mon Nov 26 15:11:33 UTC 2018


Author: yuripv
Date: Mon Nov 26 15:11:32 2018
New Revision: 340974
URL: https://svnweb.freebsd.org/changeset/base/340974

Log:
  bectl: sync usage with man page, removing stray multibyte characters
  in the process.
  
  PR:		233526
  Submitted by:	tigersharke at gmail.com (original version)
  Reviewed by:	kevans
  Approved by:	kib (mentor, implicit)
  MFC after:	3 days
  Differential revision:	https://reviews.freebsd.org/D18335

Modified:
  head/sbin/bectl/bectl.c

Modified: head/sbin/bectl/bectl.c
==============================================================================
--- head/sbin/bectl/bectl.c	Mon Nov 26 14:45:58 2018	(r340973)
+++ head/sbin/bectl/bectl.c	Mon Nov 26 15:11:32 2018	(r340974)
@@ -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 at snapshot}] beName\n"
-	    "\tbectl create beName at snapshot\n"
+	    "\tbectl create [-r] [-e {nonActiveBe | beName at snapshot}] beName\n"
+	    "\tbectl create [-r] beName at snapshot\n"
 	    "\tbectl destroy [-F] {beName | beName at 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);


More information about the svn-src-head mailing list