[Bug 272260] bectl(8) usage: -?

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 28 Jun 2023 02:37:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272260

            Bug ID: 272260
           Summary: bectl(8) usage: -?
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: grahamperrin@freebsd.org

From printed usage information, added at
<https://github.com/freebsd/freebsd-src/pull/728/commits/f6f931d28b2d7c231317e52df641f15ef49042f3#diff-c02d05827bafa5f8205b59bd5e53274a6043030b432b47ffcb9bb7907bb5d5f5R124-R127>: 

> Usage:  bectl {-h | -? | subcommand [args...]}

From an earlier edition of the manual page: 

> SYNOPSIS
>      bectl [-h?]

Originally, was what's below the intention? 

    -? to be synonymous with (an alternative to) -h

Actual results: 


% bectl -?
bectl: No match.
% bectl ?
Unknown command: R
Usage:  bectl {-h | -? | subcommand [args...]}
        bectl [-r beroot] activate [-t] beName
        bectl [-r beroot] activate [-T]
        bectl [-r beroot] check
        bectl [-r beroot] create [-r] [-e {nonActiveBe | beName@snapshot}]
beName
        bectl [-r beroot] create [-r] beName@snapshot
        bectl [-r beroot] destroy [-Fo] {beName | beName@snapshot}
        bectl [-r beroot] export sourceBe
        bectl [-r beroot] import targetBe
        bectl [-r beroot] jail [-bU] [{-o key=value | -u key}]... beName
              [utility [argument ...]]
        bectl [-r beroot] list [-aDHs] [{-c property | -C property}]
        bectl [-r beroot] mount beName [mountpoint]
        bectl [-r beroot] rename origBeName newBeName
        bectl [-r beroot] {ujail | unjail} {jailID | jailName | beName}
        bectl [-r beroot] {umount | unmount} [-f] beName
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #0
main-n263799-f81be7a8318b-dirty: Mon Jun 26 22:09:58 BST 2023    
grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64 1400092 1400090
%

-- 
You are receiving this mail because:
You are the assignee for the bug.