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) {
|
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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue