mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
cli: Allow --inventory and --announce together
Allow these flags to be used together, since we are announcing the inventory.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user