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
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -210,8 +210,8 @@ impl Args for Options {
} }
} }
let sync = if inventory && (fetch || announce) { let sync = if inventory && fetch {
anyhow::bail!("`--inventory` cannot be used with `--fetch` or `--announce`"); anyhow::bail!("`--inventory` cannot be used with `--fetch`");
} else if inventory { } else if inventory {
SyncMode::Inventory SyncMode::Inventory
} else { } else {