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.
This commit is contained in:
RadsammyT 2024-04-24 00:50:37 -04:00 committed by cloudhead
parent 0d00528d48
commit d5045417d6
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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)?;