"credopts": options.CredentialsOptions,
"versionopts": options.VersionOptions,
}
- # This epilog will print at the end when the user invokes the command w/ -h or --help
- epilog = ""
outf = sys.stdout
def usage(self, *args):
sys.exit(1)
def _create_parser(self):
- parser = optparse.OptionParser(usage=self.synopsis, epilog=self.epilog,
+ parser = optparse.OptionParser(usage=self.synopsis,
description=self.long_description)
parser.add_options(self.takes_options)
optiongroups = {}
max_length = max(map(lambda c: len(c), subcmds))
for cmd in subcmds:
print " %*s - %s" % (-max_length, cmd, self.subcommands[cmd].description)
- print " * server connection needed"
if subcommand in [None]:
raise CommandError("You must specify a subcommand")
if subcommand in ['help', '-h', '--help']:
class cmd_fsmo(SuperCommand):
- """Flexible Single Master Operations (FSMO) roles management *"""
+ """Flexible Single Master Operations (FSMO) roles management"""
subcommands = {}
subcommands["seize"] = cmd_fsmo_seize()
)
class cmd_time(Command):
- """Retrieve the time on a remote server *"""
+ """Retrieve the time on a remote server"""
synopsis = "%prog time [server-name] [options]"
takes_args = ["server_name?"]
)
class cmd_vampire(Command):
- """Join and synchronise a remote AD domain to the local server [server connection needed]"""
+ """Join and synchronise a remote AD domain to the local server"""
synopsis = "%prog vampire [options] <domain>"
takes_options = [