From b916c35d7686e2e3673f453f02770fa443b90a16 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 20 Feb 2026 10:41:58 +0000 Subject: fix: show ID|nevent in usage for apply, checkout and list commands Adds value_name attribute to the id argument so the usage line reads `` instead of ``, making nevent bech32 support discoverable without reading --help. --- src/bin/ngit/cli.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bin/ngit/cli.rs') diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs index 7baa1d3..037d17f 100644 --- a/src/bin/ngit/cli.rs +++ b/src/bin/ngit/cli.rs @@ -120,6 +120,7 @@ pub enum Commands { #[arg(long)] json: bool, /// Show details for specific proposal (event-id or nevent) + #[arg(value_name = "ID|nevent")] id: Option, /// Use local cache only, skip network fetch #[arg(long)] @@ -131,6 +132,7 @@ pub enum Commands { )] Checkout { /// Proposal event-id (hex) or nevent (bech32) + #[arg(value_name = "ID|nevent")] id: String, /// Use local cache only, skip network fetch #[arg(long)] @@ -142,6 +144,7 @@ pub enum Commands { )] Apply { /// Proposal event-id or nevent + #[arg(value_name = "ID|nevent")] id: String, /// Output patches to stdout instead of applying #[arg(long)] -- cgit v1.2.3