-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Description
Please consider sorting ParameterSource in order of "explicitness", as this
would make it easier to test for how explicit a parameter is.
Currently, the values are:
- COMMANDLINE
- ENVIRONMENT
- DEFAULT
- DEFAULT_MAP
- PROMPT
If I want to test whether a parameter has been explicitly provided, I need to
test whether that is not DEFAULT and not DEFAULT_MAP.
Consider this order instead:
- PROMPT
- COMMANDLINE
- ENVIRONMENT
- DEFAULT_MAP
- DEFAULT
Now I can test x < DEFAULT_MAP. And if #2878 goes anywhere, CONFIGFILE could be slotted in before DEFAULT_MAP.
Reactions are currently unavailable