Skip to main content

should_load_config

Function should_load_config 

Source
pub fn should_load_config(command_name: Option<&str>) -> bool
Expand description

Ported from shouldLoadConfig.

command_name is None when no subcommand has been resolved yet (mirrors Go’s args == nil case, which always loads); Some("") is unreachable in this port since clap requires a subcommand, but is accepted for parity with Go’s skip list.