From b8d956827e627a702127cb387a2fc6f66a9943bb Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Sun, 2 Jun 2024 23:37:16 -0400 Subject: [PATCH] Just change how --full affects the Steam refresh --- src/cli.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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?; }