pub(crate) fn get_canonical_name(command: &Command) -> String
Utility function to get the canonical name of a command.