pub fn extract_primary_command(command: &str) -> Option<&str>
Parse a command and extract the primary command name