method
normalize_command_name
v2_6_3 -
Show latest stable
- Class:
Bundler::Thor
normalize_command_name(meth)protected
receives a (possibly nil) command name and returns a name that is in the commands hash. In addition to normalizing aliases, this logic will determine if a shortened command is an unambiguous substring of a command or alias.
normalize_command_name also converts names like animal-prison into animal_prison.