diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index e0bd1493..d1d9747c 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2597,15 +2597,6 @@ Usage: Usage: unalias [-a] name [name ...] except IOError as e: self.perror(e) - # noinspection PyUnusedLocal - def onecmd_plus_hooks(cmd_plus_args): - """Run a cmd2.Cmd command from a Python script or the interactive Python console. - - :param cmd_plus_args: str - command line including command and arguments to run - :return: bool - True if cmdloop() should exit once leaving the interactive Python console - """ - return self.onecmd_plus_hooks(cmd_plus_args + '\n') - bridge = PyscriptBridge(self) self.pystate['run'] = run self.pystate[self.pyscript_name] = bridge |