(self, command)
return (clean_command(split[0]), split[1:])
Parses a given command.

        Args:
            command (str): The raw command to parse.
        Returns:
            (str, List[str]): A tuple of the command followed by arguments.
Parses a given command.
Parses a given command .
def parse_command(self, command):
        # type: (str) -> Tuple[str, List[str]]
        '''
        Parses a given command.

        Args:
            command (str): The raw command to parse.
        Returns:
            (str, List[str]): A tuple of the command followed by arguments.
        '''
        # First try shlex
        command = clean_input(command)
        try:
            split = shlex.split(command)
        except ValueError:
            # ignore shlex exception
            # Fall back to naive method
            split = command.split()

        return (clean_command(split[0]), split[1:])
def parse_command ( self , command ) : # type: (str) -> Tuple[str, List[str]] # First try shlex command = clean_input ( command ) try : split = shlex . split ( command ) except ValueError : # ignore shlex exception # Fall back to naive method split = command . split ( ) return ( clean_command ( split [ 0 ] ) , split [ 1 : ] )