Skip to content

fix: prioritize explicit path-list flags over config - #662

Open
pcbeingused333 wants to merge 1 commit into
bootandy:masterfrom
pcbeingused333:fix/c5890-files-from
Open

pcbeingused333 wants to merge 1 commit into
bootandy:masterfrom
pcbeingused333:fix/c5890-files-from

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

Dust reads the configured NUL-delimited list when --files-from is passed explicitly. The source selection checks the files0-from configuration fallback before it checks the newline-delimited CLI flag.

Choose the path and delimiter together, checking both CLI flags before either configuration key. With no list flag, the configured NUL-delimited list retains precedence.

The regression test creates both lists with distinct targets. It checks that Dust reads the configured target on its own and switches to the CLI target when --files-from is passed. The test fails on master and passes with this change. cargo test --test test_flags, cargo fmt --check and cargo clippy pass.

AI assistance (OpenAI Codex) was used to prepare this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant