samba-tool: removed the assignment to parser.prog
authorGiampaolo Lauria <lauria2@yahoo.com>
Fri, 15 Jul 2011 13:47:51 +0000 (09:47 -0400)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Jul 2011 00:32:24 +0000 (10:32 +1000)
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 <tridge@samba.org>
source4/scripting/python/samba/netcmd/__init__.py

index 8e9044bd69c09eae0671810085b9b7c5b4d203f6..1e032924fca8de2907c7136900cfd2c330e44055 100644 (file)
@@ -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():