summaryrefslogtreecommitdiff
path: root/plugins/template/examples/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/template/examples/example.py')
-rw-r--r--plugins/template/examples/example.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/template/examples/example.py b/plugins/template/examples/example.py
index 2c9b8e5c..b071b5f8 100644
--- a/plugins/template/examples/example.py
+++ b/plugins/template/examples/example.py
@@ -1,12 +1,14 @@
#
# coding=utf-8
-import cmd2
import cmd2_myplugin
+import cmd2
+
class Example(cmd2_myplugin.MyPlugin, cmd2.Cmd):
"""An class to show how to use a plugin"""
+
def __init__(self, *args, **kwargs):
# gotta have this or neither the plugin or cmd2 will initialize
super().__init__(*args, **kwargs)