From nobody Mon Mar 18 11:55:09 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TytZj6h6pz5DZf2 for ; Mon, 18 Mar 2024 11:55:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TytZj3ldQz436N for ; Mon, 18 Mar 2024 11:55:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710762909; a=rsa-sha256; cv=none; b=f4b3lwqm30kEl37Io6nqRAjmLJzhaAshrqqNLEuimbfuYamWqIVB7/TDRbtI3jnYJ4x/G9 CzdPpbUwjcJTVBObURcPs9VAOXStLYLgHmZLKaEVJHGjU0EX+pwNq+48x9GK4g9qHjZrLR 45JosJzQC+HsvPiEEOnc/nGJmAHYBblUdzqLZ9RW5swHl5hVCVPqxFcBdx/W9mVO1WZtDv maFMPEql1ATAWXEHWVjZMCwg9tZCJBKOkCs21q0BwkSqmHhSYblEONhlcyzfREGL2kQH7j 70cyN5BMKeHu+zuYlLSOVCYklyoXELdJ33rTTr/UOHYk+F9lft3HzwXbekLNIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710762909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SgQPJG9ENzM2Yc16oijU58Qs211EgwphnoafrQvfgaY=; b=aWKWkojPKbCt8pgG/cj/9sTagxRAvC73epHIr9PDmG2l8rG9fd3Y30nNIGd1AtZEfu7niw SwoZTBV01PsEAXHIR5ndpHf6z+oyinfFRHF+grDrSWlyH0BDvg8fs+zUhuIBBxHJdKB2aM fZW6fXa24VpgDtrtZIzs+azi7EBg4+sHwh5oVg6ig0PpUBBui40IrhivrndeIF9lK+atSq syc4JvkqtcaccruudFybMTHNXUQvkBKZSKzinMFCx/FuRUoXZmXZowB8ToRwANH2Cz4kKP BFQOEzumdIwYBsJgkA3mP1/TzZ1Mgc0CT1/1Av4wKctF8ZtqqFd97vNtUauL/g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TytZj3F24zLlR for ; Mon, 18 Mar 2024 11:55:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42IBt9g2004959 for ; Mon, 18 Mar 2024 11:55:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42IBt9Z7004958 for bugs@FreeBSD.org; Mon, 18 Mar 2024 11:55:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272260] bectl(8) usage: -? Date: Mon, 18 Mar 2024 11:55:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: des@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272260 Dag-Erling Sm=C3=B8rgrav changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |des@FreeBSD.org --- Comment #11 from Dag-Erling Sm=C3=B8rgrav --- Because `getopt(3)` returns `?` when it encounters an error, and the usual = way to handle said error is to print a usage message and exit, `-?` can usually= be relied upon to produce a usage message even if the author of the utility did not think to provide a `-h` option for that purpose. Some people have improperly internalized this as =E2=80=9C`-?` is the standard way to reques= t a usage message=E2=80=9D, which is not the case. The author of `bectl(8)` appears = to be one of those people, and hardcoded a check for `-?` in `bectl(8)`'s non-standard command line parser. My recommendation is to rewrite `bectl(8)` to use `getopt(3)` and remove all mention of `-?` from the usage string and manual page. --=20 You are receiving this mail because: You are the assignee for the bug.=