check_conflicts

Function check_conflicts 

Source
pub fn check_conflicts(flag_a: Flag, flag_b: Flag)
Expand description

Check if two flags conflict and exit with an error if they do.

This function checks if both flags are enabled (truthy) and reports an error if so, including the source of each flag (CLI or environment variable) in the error message.