We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b6a36c commit 5be70a0Copy full SHA for 5be70a0
cmd2/cmd2.py
@@ -2569,15 +2569,6 @@ def run(filename):
2569
except IOError as e:
2570
self.perror(e)
2571
2572
- # noinspection PyUnusedLocal
2573
- def onecmd_plus_hooks(cmd_plus_args):
2574
- """Run a cmd2.Cmd command from a Python script or the interactive Python console.
2575
-
2576
- :param cmd_plus_args: str - command line including command and arguments to run
2577
- :return: bool - True if cmdloop() should exit once leaving the interactive Python console
2578
- """
2579
- return self.onecmd_plus_hooks(cmd_plus_args + '\n')
2580
2581
bridge = PyscriptBridge(self)
2582
self.pystate['run'] = run
2583
self.pystate[self.pyscript_name] = bridge
0 commit comments