Skip to main content

lead_repo_flag

Function lead_repo_flag 

Source
pub fn lead_repo_flag(
    args: &[String],
) -> Option<(Option<(String, String)>, &[String])>
Expand description

A repository flag in front of the command word (gh -R o/r pr merge 7, which gh accepts): the repository it names, and the arguments without it. None for a command that does not start with one, or whose flag is not OWNER/REPO (then gh itself says what is wrong).