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.
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:
If I want to test whether a parameter has been explicitly provided, I need to
test whether that is not
DEFAULTand notDEFAULT_MAP.Consider this order instead:
Now I can test
x < DEFAULT_MAP. And if #2878 goes anywhere,CONFIGFILEcould be slotted in beforeDEFAULT_MAP.