summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/netcmd/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/netcmd/__init__.py b/source4/scripting/python/samba/netcmd/__init__.py
index b3a40837f2..f8ce5abe18 100644
--- a/source4/scripting/python/samba/netcmd/__init__.py
+++ b/source4/scripting/python/samba/netcmd/__init__.py
@@ -70,6 +70,10 @@ class Command(object):
takes_options = []
takes_optiongroups = {}
+ raw_argv = None
+ raw_args = None
+ raw_kwargs = None
+
def __init__(self, outf=sys.stdout, errf=sys.stderr):
self.outf = outf
self.errf = errf
@@ -156,6 +160,10 @@ class Command(object):
parser.print_usage()
return -1
+ self.raw_argv = list(argv)
+ self.raw_args = args
+ self.raw_kwargs = kwargs
+
try:
return self.run(*args, **kwargs)
except Exception, e: