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

IniParser: write 'func' options with "ini-name" #325

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cdevienne
Copy link

If a 'ini-name' tag is set on the option, write it to file even if the
option is a function.

If a 'ini-name' tag is set on the option, write it to file even if the
option is a function.
@cdevienne cdevienne force-pushed the write-ini-func-options branch from d25583f to e9ecd9d Compare December 12, 2019 11:28
@jessevdk
Copy link
Owner

What is the idea behind this?

@cdevienne
Copy link
Author

I use the WriteIni function to generate a configuration file skeleton, in which I want to see all options, including some function based ones.
Since that PR I modified my fork so the option is always commented. If meaningful I can update the PR.
A more complete version of this PR would be to somehow store the value that was read from the configuration so a read/write of the configuration file is idempotent.

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.

2 participants