summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQrius <[email protected]>2024-11-12 12:36:35 +0100
committerQrius <[email protected]>2024-11-12 12:37:29 +0100
commit482290c40763796f530ebe0812bacf905af194fc (patch)
treeff66c3ac0a5c4e4929cf4212940302af17d2ec4b /src
parent670411b72ce59341e45d5fbecfa6f232f682d374 (diff)
downloadskaldpress-482290c40763796f530ebe0812bacf905af194fc.tar.gz
skaldpress-482290c40763796f530ebe0812bacf905af194fc.zip
Fix some typos
Diffstat (limited to 'src')
-rw-r--r--src/skaldpress/main.rs5
-rw-r--r--src/skaldpress/parseopts.rs2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/skaldpress/main.rs b/src/skaldpress/main.rs
index 9ab988e..909f139 100644
--- a/src/skaldpress/main.rs
+++ b/src/skaldpress/main.rs
@@ -520,7 +520,7 @@ fn file_filtered(file: &String, filters: &Vec<String>, exclude: &Vec<String>) ->
}
for filter in filters {
if file_pat_match(file, filter) {
- return true;
+ return false;
}
}
true
@@ -559,9 +559,6 @@ fn compile_files_in_directory(directory: &Path, opts: &Opts) -> Result<(), Skald
}
}
- //let should_compile = (opts.first_run || needs_recompilation)
- // && ((opts.filter.len() == 0)
- // || !file_filtered(&path.as_path().to_str().unwrap_or("").to_string(), &opts.filter));
let should_compile = (opts.first_run || needs_recompilation)
&& !file_filtered(
&path.as_path().to_str().unwrap_or("").to_string(),
diff --git a/src/skaldpress/parseopts.rs b/src/skaldpress/parseopts.rs
index ec32bfd..a0944a8 100644
--- a/src/skaldpress/parseopts.rs
+++ b/src/skaldpress/parseopts.rs
@@ -154,7 +154,7 @@ pub fn parseopt(opts: &mut OptsBuilder, arg: &str, value: Option<String>, progna
println!("Missing value for {}\n", arg);
parseopts_panic!(progname);
};
- opts.exclude = compilefilter.split(",").map(|x| x.to_string()).collect();
+ opts.compilefilter = compilefilter.split(",").map(|x| x.to_string()).collect();
}
"m" | "metadata" => {
let Some(meta) = value else {