From: Stefan Metzmacher Date: Tue, 12 Mar 2019 09:25:40 +0000 (+0100) Subject: python/samba/netcmd: provide SUPPRESS_HELP via Option class X-Git-Tag: samba-4.8.10~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6f2efd080b935c1b809da74518ee9b96814b2b0;p=thirdparty%2Fsamba.git python/samba/netcmd: provide SUPPRESS_HELP via Option class BUG: https://bugzilla.samba.org/show_bug.cgi?id=13816 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett (cherry picked from commit b61d580fb7dba8ff94e9e98c958e324865cd2f1d) --- diff --git a/python/samba/netcmd/__init__.py b/python/samba/netcmd/__init__.py index 05ecc432ea6..9dd6748447f 100644 --- a/python/samba/netcmd/__init__.py +++ b/python/samba/netcmd/__init__.py @@ -23,6 +23,7 @@ import sys, traceback import textwrap class Option(optparse.Option): + SUPPRESS_HELP = optparse.SUPPRESS_HELP pass # This help formatter does text wrapping and preserves newlines