MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / default

Method default

tools/python-3.11.9-amd64/Lib/cmd.py:229–236  ·  view source on GitHub ↗

Called on an input line when the command prefix is not recognized. If this method is not overridden, it prints an error message and returns.

(self, line)

Source from the content-addressed store, hash-verified

227 return self.onecmd(self.lastcmd)
228
229 def default(self, line):
230 """Called on an input line when the command prefix is not recognized.
231
232 If this method is not overridden, it prints an error message and
233 returns.
234
235 """
236 self.stdout.write('*** Unknown syntax: %s\n'%line)
237
238 def completedefault(self, *ignored):
239 """Method called to complete an input line when no command-specific

Callers 1

onecmdMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected