Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
cli: remove op check for `--repo` in `rad inbox`
Merged did:key:z6Mktnv1...8DHL opened 2 years ago

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.

1 file changed +1 -1 0d00528d d5045417
modified 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)?;