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

The doc option should not have a default value #566

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

paracycle
Copy link
Member

Motivation

The actual base default value of our flags is set in the ConfigBuilder class. Any value passed to the command line flags (even if it is a default value) will override all the values in the default and in the config.

The upshot is that, since we had the default value of false for the doc option, a doc: true addition to the config file had no effect since the false coming from options would always override the config one.

Implementation

Remove the default value.

Tests

No tests.

The actual base default value of our flags is set in the `ConfigBuilder`
class. Any value passed to the command line flags (even if it is a
default value) will override all the values in the default and in the
config.

The upshot is that, since we had the default value of `false` for the
`doc` option, a `doc: true` addition to the config file had no effect
since the `false` coming from options would always override the config
one.
@paracycle paracycle requested review from vinistock and a team October 26, 2021 23:02
@paracycle paracycle merged commit f7a8ca1 into main Oct 27, 2021
@paracycle paracycle deleted the uk-fix-doc-default-value branch October 27, 2021 16:05
@Morriar Morriar added the bugfix label Oct 29, 2021
@paracycle paracycle added the backported Backported to stable branch label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Backported to stable branch bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants