diff options
author | kotfu <kotfu@kotfu.net> | 2018-05-27 17:15:12 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-05-27 17:15:12 -0600 |
commit | 019f69c3159707e1fb077317a33ffe343426b36c (patch) | |
tree | 01582040d2207123365b7ae3c25248332bf7978b /cmd2/cmd2.py | |
parent | bf0d0747514a5e84263e97d2094b0f6bc8a44e46 (diff) | |
parent | 8f88f819fae7508066a81a8d961a7115f2ec4bed (diff) | |
download | cmd2-git-019f69c3159707e1fb077317a33ffe343426b36c.tar.gz |
Merge branch 'master' into plugin_functions
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 |