Skip to content

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

Open
cdevienne wants to merge 1 commit intojessevdk:mainfrom
orus-io:write-ini-func-options
Open

IniParser: write 'func' options with "ini-name"#325
cdevienne wants to merge 1 commit intojessevdk:mainfrom
orus-io:write-ini-func-options

Conversation

@cdevienne
Copy link
Copy Markdown

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
Copy Markdown
Owner

What is the idea behind this?

@cdevienne
Copy link
Copy Markdown
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