Just change how --full affects the Steam refresh
This commit is contained in:
parent
c6ced7e122
commit
b8d956827e
1 changed files with 6 additions and 1 deletions
|
@ -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<usize>,
|
||||
|
@ -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?;
|
||||
}
|
||||
|
|
Reference in a new issue