MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / parseline

Method parseline

cmd2/cmd2.py:2864–2871  ·  view source on GitHub ↗

Parse the line into a command name and a string containing the arguments. :param line: line read by prompt-toolkit :return: tuple containing (command, args, line)

(self, line: str)

Source from the content-addressed store, hash-verified

2862 """
2863
2864 def parseline(self, line: str) -> tuple[str, str, str]:
2865 """Parse the line into a command name and a string containing the arguments.
2866
2867 :param line: line read by prompt-toolkit
2868 :return: tuple containing (command, args, line)
2869 """
2870 partial_statement = self.statement_parser.parse_command_only(line)
2871 return partial_statement.command, partial_statement.args, partial_statement.command_and_args
2872
2873 def onecmd_plus_hooks(
2874 self,

Callers 2

test_parseline_emptyFunction · 0.80
test_parseline_quotedFunction · 0.80

Calls 1

parse_command_onlyMethod · 0.80

Tested by 2

test_parseline_emptyFunction · 0.64
test_parseline_quotedFunction · 0.64