pub(crate) fn resolve<T: Clone + From<String>>(
matches: &mut ArgMatches,
arg_name: &str,
from_git_config: impl FnOnce() -> Result<Option<T>>,
) -> Result<T>
Expand description
Extract user arguments in order of preference:
- Passed in as direct CLI options
- Specified as an environment variable
- Specified in
git config
- A default from querying the operating system