git: 10afb2770bb9 - stable/12 - bhyve: Fix synopsis in the usage message

Mateusz Piotrowski 0mp at FreeBSD.org
Mon Aug 16 11:14:53 UTC 2021


The branch stable/12 has been updated by 0mp (doc, ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=10afb2770bb99a4e3cc4e1c8ddbe32d9f5b80f0a

commit 10afb2770bb99a4e3cc4e1c8ddbe32d9f5b80f0a
Author:     Mateusz Piotrowski <0mp at FreeBSD.org>
AuthorDate: 2021-04-18 18:04:12 +0000
Commit:     Mateusz Piotrowski <0mp at FreeBSD.org>
CommitDate: 2021-08-16 09:24:56 +0000

    bhyve: Fix synopsis in the usage message
    
    In particular:
    - Sort short options to align with style(9)
    - Add two missing flags: -G and -r
    - Drop unnecessary angle brackets for consistency
    - Rename the "vm" argument to vmname for consistency with the manual
      page
    
    MFC after:      2 weeks
    
    (cherry picked from commit 03c3e5e40d6497afa33df1d0b43857157c086729)
    
    Note: the -r flag is not present on branch stable/12.
---
 usr.sbin/bhyve/bhyverun.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
index c2990d480808..fb7c0357c9f9 100644
--- a/usr.sbin/bhyve/bhyverun.c
+++ b/usr.sbin/bhyve/bhyverun.c
@@ -213,10 +213,10 @@ usage(int code)
 {
 
         fprintf(stderr,
-		"Usage: %s [-abehuwxACDHPSWY]\n"
+		"Usage: %s [-AaCDeHhPSuWwxY]\n"
 		"       %*s [-c [[cpus=]numcpus][,sockets=n][,cores=n][,threads=n]]\n"
-		"       %*s [-g <gdb port>] [-l <lpc>]\n"
-		"       %*s [-m mem] [-p vcpu:hostcpu] [-s <pci>] [-U uuid] <vm>\n"
+		"       %*s [-G port] [-k file] [-l lpc] [-m mem] [-o var=value]\n"
+		"       %*s [-p vcpu:hostcpu] [-s pci] [-U uuid] vmname\n"
 		"       -a: local apic is in xAPIC mode (deprecated)\n"
 		"       -A: create ACPI tables\n"
 		"       -c: number of cpus and/or topology specification\n"


More information about the dev-commits-src-all mailing list