Skip to content

fix --rules-dir in mathml2text CLI#543

Open
moritz-gross wants to merge 1 commit intodaisy:mainfrom
moritz-gross:fix-rulesdir-in-mathml2text
Open

fix --rules-dir in mathml2text CLI#543
moritz-gross wants to merge 1 commit intodaisy:mainfrom
moritz-gross:fix-rulesdir-in-mathml2text

Conversation

@moritz-gross
Copy link
Copy Markdown
Collaborator

While testing out the mathml2text CLI, I noticed that --rules-dir seems to not actually be used.
For example, the following shouldn't work right? cargo run --bin mathml2text -- --rules-dir /some/other/rules

Regarding the integration tests, I don't really know what I'm doing there.

* Added `resolve_rules_dir` function to handle `--rules-dir` resolution.
* Updated logging to display the resolved rules directory.
* Added tests ensuring correct behavior for explicit `--rules-dir` usage, default rules-dir fallback, and invalid rules-dir handling.
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