From 1dfcb019d2dcca1d21ec32ee05bf7da15ca84e9f Mon Sep 17 00:00:00 2001 From: Giampaolo Lauria Date: Fri, 15 Jul 2011 09:47:51 -0400 Subject: samba-tool: removed the assignment to parser.prog The prog should only be set if we want it to be different than the name of the program that executed it. I think that for better portability we should not set it and let it default to samba-tool. Signed-off-by: Andrew Tridgell --- source4/scripting/python/samba/netcmd/__init__.py | 1 - 1 file changed, 1 deletion(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/netcmd/__init__.py b/source4/scripting/python/samba/netcmd/__init__.py index 8e9044bd69..1e032924fc 100644 --- a/source4/scripting/python/samba/netcmd/__init__.py +++ b/source4/scripting/python/samba/netcmd/__init__.py @@ -98,7 +98,6 @@ class Command(object): def _create_parser(self): parser = optparse.OptionParser(self.synopsis) - parser.prog = "samba-tool" parser.add_options(self.takes_options) optiongroups = {} for name, optiongroup in self.takes_optiongroups.iteritems(): -- cgit