cli: Allow --inventory and --announce together

Allow these flags to be used together, since we are announcing the
inventory.
This commit is contained in:
cloudhead
2024-05-24 11:10:48 +02:00
parent a85e7f7442
commit 61733ebb95
+2 -2
View File
@@ -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 {