-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Ini option aliases #13829
Copy link
Copy link
Labels
topic: configrelated to config handling, argument parsing and config filerelated to config handling, argument parsing and config filetype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Metadata
Metadata
Assignees
Labels
topic: configrelated to config handling, argument parsing and config filerelated to config handling, argument parsing and config filetype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
For #13823 I'd like strictness options to have a consistent
strict_foonaming scheme, however the optionxfail_stricthas it in reverse. I'd like to rename it tostrict_xfail, while keepingxfail_strictas an alias.To achieve this cleanly, I propose we add support for aliases to
parser.addini(). It's pretty useful functionality for backward compatibility, and plugins may want to use it as well.