From d5045417d6abdb8fa96509be53c7310d7fbb5d17 Mon Sep 17 00:00:00 2001 From: RadsammyT Date: Wed, 24 Apr 2024 00:50:37 -0400 Subject: [PATCH] cli: remove op check for `--repo` in `rad inbox` As a response to Issue # c4134924cf2ce84444c6f7235a27651ad49311b5. A no-op command in rad inbox defaults to show, but the inbox argument parser only permits --repo in instances where the operation is explicity declared. Here, the check for an explicit operation is removed so one is never required. --- radicle-cli/src/commands/inbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle-cli/src/commands/inbox.rs b/radicle-cli/src/commands/inbox.rs index 7d77d188..f313d14f 100644 --- a/radicle-cli/src/commands/inbox.rs +++ b/radicle-cli/src/commands/inbox.rs @@ -124,7 +124,7 @@ impl Args for Options { } } } - Long("repo") if mode.is_none() && op.is_some() => { + Long("repo") if mode.is_none() => { let val = parser.value()?; let repo = args::rid(&val)?;