import sys, traceback
import textwrap
+
class Option(optparse.Option):
pass
# This help formatter does text wrapping and preserves newlines
+
+
class PlainHelpFormatter(optparse.IndentedHelpFormatter):
def format_description(self, description=""):
desc_width = self.width - self.current_indent
else:
return ""
+
class Command(object):
"""A samba-tool command."""