cli: Allow `--inventory` and `--announce` together
Allow these flags to be used together, since we are announcing the inventory.
This commit is contained in:
parent
a85e7f7442
commit
61733ebb95
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue