mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
samba-tool: fixed __doc__ in base classes
Replaced the "net" word with %prog in all instances Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
committed by
Andrew Tridgell
parent
903ec440c4
commit
a2e2c130b0
@ -31,7 +31,7 @@ class Option(optparse.Option):
|
|||||||
|
|
||||||
|
|
||||||
class Command(object):
|
class Command(object):
|
||||||
"""A net command."""
|
"""A %prog command."""
|
||||||
|
|
||||||
def _get_description(self):
|
def _get_description(self):
|
||||||
return self.__doc__.splitlines()[0].rstrip("\n")
|
return self.__doc__.splitlines()[0].rstrip("\n")
|
||||||
@ -148,7 +148,7 @@ class Command(object):
|
|||||||
|
|
||||||
|
|
||||||
class SuperCommand(Command):
|
class SuperCommand(Command):
|
||||||
"""A command with subcommands."""
|
"""A %prog command with subcommands."""
|
||||||
|
|
||||||
subcommands = {}
|
subcommands = {}
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ class SuperCommand(Command):
|
|||||||
|
|
||||||
|
|
||||||
class CommandError(Exception):
|
class CommandError(Exception):
|
||||||
'''an exception class for netcmd errors'''
|
'''an exception class for %prog cmd errors'''
|
||||||
def __init__(self, message, inner_exception=None):
|
def __init__(self, message, inner_exception=None):
|
||||||
self.message = message
|
self.message = message
|
||||||
self.inner_exception = inner_exception
|
self.inner_exception = inner_exception
|
||||||
|
Reference in New Issue
Block a user