mirror of
https://github.com/samba-team/samba.git
synced 2025-07-14 12:59:07 +03:00
samba-tool: Fix __doc_ in base classes
Changed prog to samba-tool as prog is only meaningful in Parser Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
committed by
Andrew Tridgell
parent
5f5eb1b003
commit
6e7b8aaf1d
@ -31,7 +31,7 @@ class Option(optparse.Option):
|
||||
|
||||
|
||||
class Command(object):
|
||||
"""A %prog command."""
|
||||
"""A samba-tool command."""
|
||||
|
||||
def _get_description(self):
|
||||
return self.__doc__.splitlines()[0].rstrip("\n")
|
||||
@ -149,7 +149,7 @@ class Command(object):
|
||||
|
||||
|
||||
class SuperCommand(Command):
|
||||
"""A %prog command with subcommands."""
|
||||
"""A samba-tool command with subcommands."""
|
||||
|
||||
subcommands = {}
|
||||
|
||||
@ -183,7 +183,7 @@ class SuperCommand(Command):
|
||||
|
||||
|
||||
class CommandError(Exception):
|
||||
'''an exception class for %prog cmd errors'''
|
||||
'''an exception class for samba-tool cmd errors'''
|
||||
def __init__(self, message, inner_exception=None):
|
||||
self.message = message
|
||||
self.inner_exception = inner_exception
|
||||
|
Reference in New Issue
Block a user