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

No duplicate inclusion of the same option in configuration files #4

Open
PhilippWendler opened this issue Dec 21, 2015 · 0 comments
Open

Comments

@PhilippWendler
Copy link
Member

In order to avoid ambiguities, the configuration parser avoids depending on the order of configuration statements. For example, included configuration options are always overwritten by configuration options in the including file, no matter the order of the option and the #include statement.

An exception for this is if there are two #include statements, both of which include a file with the same option. Then one takes precedence, which can be confusing for the user, because in order to find out whether an option from an included file is overwritten, all other included files need to be searched through transitively.

Thus the parser should reject duplicate different values of options from different included files. The user would have to manually specify the final value of the option in the including file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant