From c6ced7e12259f23b31778408b84b73b5096a6ce7 Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Sun, 2 Jun 2024 23:34:26 -0400 Subject: [PATCH] Remove bulk --full argument so that --wiki-from doesn't cause the wrong Steam IDs to refresh --- src/cli.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 7eec4571..780c3a26 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -45,10 +45,6 @@ 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, @@ -106,14 +102,13 @@ pub async fn run( ) -> Result<(), Error> { match sub { Subcommand::Bulk { - full, limit, recent_changes, missing_pages, wiki_from, steam_from, } => { - let outdated_only = !full && wiki_from.is_none(); + let outdated_only = wiki_from.is_none(); if recent_changes { wiki_cache.flag_recent_changes(wiki_meta_cache).await?; } @@ -122,7 +117,7 @@ pub async fn run( } wiki_cache.refresh(outdated_only, None, limit, wiki_from).await?; - let outdated_only = !full && steam_from.is_none(); + let outdated_only = steam_from.is_none(); steam_cache.transition_states_from(wiki_cache); steam_cache.refresh(outdated_only, None, limit, steam_from)?;