diff options
Diffstat (limited to 'mm3mod')
-rw-r--r-- | mm3mod/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mm3mod/__init__.py b/mm3mod/__init__.py index 3f22b6d..d43a770 100644 --- a/mm3mod/__init__.py +++ b/mm3mod/__init__.py @@ -11,10 +11,14 @@ class ModShell(cmd2.Cmd): intro = 'Type help or ? for a list of commands' def __init__(self, client, mlist): + super().__init__() self.client = client; self.mlist = mlist; self.prompt = '({:s}) '.format(mlist.list_name) - cmd2.Cmd.__init__(self) + for command in ['shell', 'load', 'pyscript', 'shortcuts', 'alias', + 'edit', 'history', 'py', 'set', 'unalias']: + method='do_{:s}'.format(command) + delattr(cmd2.Cmd,method) def print_held(self): self.held_messages = self.mlist.get_held_page (50,1) |