summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/netcmd/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/netcmd/__init__.py b/source4/scripting/python/samba/netcmd/__init__.py
index 54f3134d2f..f644febba6 100644
--- a/source4/scripting/python/samba/netcmd/__init__.py
+++ b/source4/scripting/python/samba/netcmd/__init__.py
@@ -23,6 +23,9 @@ class Command(object):
def _get_description(self):
return self.__doc__
+ def usage(self):
+ raise NotImplementedError
+
description = property(_get_description)
def run(self):
@@ -31,3 +34,4 @@ class Command(object):
commands = {}
+commands["foo"] = Command()