-
Notifications
You must be signed in to change notification settings - Fork 362
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
config_to_str() doesn't quote default values correctly #195
Comments
Adding test cases and a correction would be great! I assume you are referring to the default Config output, the INI one. The ConfigINI class is in include/CLI/ConfigFwd.hpp, but the |
Following your direction, I got something passing tests, but I am not sure it actually solves the problem. I will create a PR anyway. Let me clarify:
So is it actually an exporting problem or a parsing problem? |
I'd be happy to have an example or auxiliary file to support TOML, but probably would not want to make it default. Anyone can add a new Config, and attach it to the main app. There's just an example for JSON currently. The conversion to INI files was considered experimental, but it got promoted out of experimental status when the new customizable Config was added, maybe a bit too soon. I'll think about vectors a bit and see what I can come up with. I think, however, if the current INI output can only support strings-with-spaces or vectors, the strings (this patch) would win as the more common issue. |
I've added a patch to make sure it does not quote vectors and merged. Thank you! |
Of course, the corresponding testcases are also missing.
If you can point out the direction, I will be happy to implement.
The text was updated successfully, but these errors were encountered: