From 61733ebb9534ba497c2af774e92f78e359751ad0 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Fri, 24 May 2024 11:10:48 +0200 Subject: [PATCH] cli: Allow `--inventory` and `--announce` together Allow these flags to be used together, since we are announcing the inventory. --- radicle-cli/src/commands/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicle-cli/src/commands/sync.rs b/radicle-cli/src/commands/sync.rs index 37fa76f8..87279c76 100644 --- a/radicle-cli/src/commands/sync.rs +++ b/radicle-cli/src/commands/sync.rs @@ -210,8 +210,8 @@ impl Args for Options { } } - let sync = if inventory && (fetch || announce) { - anyhow::bail!("`--inventory` cannot be used with `--fetch` or `--announce`"); + let sync = if inventory && fetch { + anyhow::bail!("`--inventory` cannot be used with `--fetch`"); } else if inventory { SyncMode::Inventory } else {