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

Support --print_config skip_default #91

Closed
carmocca opened this issue Sep 16, 2021 · 1 comment · Fixed by #132
Closed

Support --print_config skip_default #91

carmocca opened this issue Sep 16, 2021 · 1 comment · Fixed by #132
Labels
enhancement New feature or request

Comments

@carmocca
Copy link
Contributor

Add support for --print_config skip_default so only the values different to the default are printed.

Two main benefits:

  • Removes the manual work of removing the extra arguments from a config. However, this isn't recommended for reproducibility as it's useful to know exactly what was set.
  • Improves backward compatibility. Often features are deprecated in a way that the default argument for a function is re-routed to the new implementation. Since the config saves all old defaults and passes them to the program, it is likely the program will fail when support for the old value is removed.
@mauvilsa
Copy link
Member

An initial version of this is implemented in pull request #132. @carmocca can you please test this hopefully with some real use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants