From 704baf55c79d60d17adf9fccdf1104fe075126f7 Mon Sep 17 00:00:00 2001 From: piegames Date: Tue, 25 Feb 2025 15:41:30 +0100 Subject: [PATCH] Make --name a global arg Fixes #89 --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index cdb99b9..03be17c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -380,7 +380,7 @@ pub enum AddCommands { pub struct AddOpts { /// Add the pin with a custom name. /// If a pin with that name already exists, it willl be overwritten - #[arg(long)] + #[arg(long, global = true)] pub name: Option, /// Don't actually apply the changes #[arg(short = 'n', long)]