Add switch to hammer CLI to disable the defaults
Description of problem:
While using Hammer we sometimes don't want the values in defaults to step in and it would be helpful to have a switch to disable the defaults
There is no way how to disable the defaults from applying
There is a switch such as:
hammer --no-defaults user list
Fixes #25307 - Add ability to disable defaults
Processing of defaults can be altered in cli_config.yml with
:use_defaults: true/false or on CLI with --use-defaults
--no-use-defaults respectively. both ways can be combined.
The value is propagated in the context as :use_defaults.
The defaults are enabled by default.
Hammer settings class was changed so that it can be the single
source of default values which has three benefits
- we don't have to fallback to default with every use of the value
- we can keep the values commented out in config which makes it easier
to change later
- there is single place to look for the default setting