I have a collection of bash functions that include a verbosity level option. According to the set value, different levels of outputs are generated. The verbosity is local to each function.
But I also have environment variables. One of them also specifies a verbosity level. It is a global verbosity tool specifically implemented to affect new terminal shells. If the environment variable is used and set to level 1, a summary of terminal commands available is printed.
Suppose a function is called with a verbosity positional argument, whilst the environment variable is also set, what would most users expect the behavior to be? To enforce the local verbosity setting, or to use the environment variable level?