Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline string config #935

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Conversation

phlptp
Copy link
Collaborator

@phlptp phlptp commented Oct 14, 2023

Support for TOML style multiline string values and comments

@codecov
Copy link

codecov bot commented Oct 14, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
include/CLI/impl/Config_inl.hpp 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@phlptp
Copy link
Collaborator Author

phlptp commented Oct 15, 2023

This is necessary to fix the issue exposed by #930

@phlptp
Copy link
Collaborator Author

phlptp commented Oct 15, 2023

The basic issue is that it is possible to get multiline strings as a value into CLI11, and if those values are made into a config string they generate config files that can't be read, and cause some very strange crossover effects and errors, so the solution is that CLI11 needs to be able to have some way to generate and support strings containing newlines. The obvious solution is to support TOML multiline strings in the config files. Which is what this PR does.

@phlptp phlptp requested a review from henryiii October 15, 2023 03:00
…ing test cases

update documentation

style: pre-commit.ci fixes
@phlptp phlptp merged commit bc8a024 into CLIUtils:main Oct 27, 2023
50 checks passed
@phlptp phlptp deleted the multiline_string_config branch October 27, 2023 21:31
@github-actions github-actions bot added the needs changelog Hasn't been added to the changelog yet label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs changelog Hasn't been added to the changelog yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant