fix: use resolved config in raw_html selector guard; remove dead path_prefix fallback

This commit is contained in:
Jacob Magar 2026-04-11 12:28:29 -04:00
parent bac13fc1b5
commit f22051491f
2 changed files with 2 additions and 2 deletions

View file

@ -191,7 +191,7 @@ pub fn resolve(
path_prefix: if explicit("path_prefix") {
cli.path_prefix.clone()
} else {
cfg.path_prefix.clone().or(cli.path_prefix.clone())
cfg.path_prefix.clone()
},
include_paths: if explicit("include_paths") {
cli.include_paths

View file

@ -2350,7 +2350,7 @@ async fn main() {
}
// --raw-html: skip extraction, dump the fetched HTML
if cli.raw_html && cli.include.is_none() && cli.exclude.is_none() {
if resolved.raw_html && resolved.include_selectors.is_empty() && resolved.exclude_selectors.is_empty() {
match fetch_html(&cli, &resolved).await {
Ok(r) => println!("{}", r.html),
Err(e) => {