diff --git a/src/cli.rs b/src/cli.rs index 780c3a26..f45b7cad 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -45,6 +45,10 @@ pub enum Subcommand { /// Fetch bulk updates from the data sources. /// By default, this only updates entries that are marked as outdated. Bulk { + /// Do a full sync. + #[clap(long)] + full: bool, + /// Only refresh this many entries. #[clap(long)] limit: Option, @@ -102,13 +106,14 @@ pub async fn run( ) -> Result<(), Error> { match sub { Subcommand::Bulk { + full, limit, recent_changes, missing_pages, wiki_from, steam_from, } => { - let outdated_only = wiki_from.is_none(); + let outdated_only = !full && wiki_from.is_none(); if recent_changes { wiki_cache.flag_recent_changes(wiki_meta_cache).await?; }