Rework Plugin.commands() to include _setup_commands().
[hooke.git] / hooke / plugin / cut.py
index f3c13c9914c0f4e2b407111149ae7dba02acfcc0..7a2e5ead3e3c24e08113b1d9bd3c1adda15ee8bc 100644 (file)
@@ -29,9 +29,8 @@ from ..plugin import Plugin
 class CutPlugin (Plugin):
     def __init__(self):
         super(CutPlugin, self).__init__(name='cut')
-
-    def commands(self):
-        return [CutCommand()]
+        self._commands = [CutCommand()]
+        self._setup_commands()
 
 
 # Define common or complicated arguments