def get_command(self, name):
<EOL>if '<STR_LIT:U+0020>' not in name:<EOL><INDENT>return self.all_commands.get(name)<EOL><DEDENT>names = name.split()<EOL>obj = self.all_commands.get(names[<NUM_LIT:0>])<EOL>if not isinstance(obj, GroupMixin):<EOL><INDENT>return obj<EOL><DEDENT>for name in names[<NUM_LIT:1>:]:<EOL><INDENT>try:<EOL><INDENT>obj = obj.all_commands[name]<EOL><DEDENT>except (AttributeError, KeyError):<EOL><INDENT>return None<EOL><DEDENT><DEDENT>return obj<EOL>
Get a :class:`.Command` or subclasses from the internal list
        of commands.

        This could also be used as a way to get aliases.

        The name could be fully qualified (e.g. ``'foo bar'``) will get
        the subcommand ``bar`` of the group command ``foo``. If a
        subcommand is not found then ``None`` is returned just as usual.

        Parameters
        -----------
        name: :class:`str`
            The name of the command to get.

        Returns
        --------
        :class:`Command` or subclass
            The command that was requested. If not found, returns ``None``.