python/samba/netcmd: provide SUPPRESS_HELP via Option class
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Mar 2019 09:25:40 +0000 (10:25 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Mar 2019 02:12:20 +0000 (02:12 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13816

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/__init__.py

index cb22b5d..54e9107 100644 (file)
@@ -27,6 +27,7 @@ import textwrap
 
 
 class Option(optparse.Option):
+    SUPPRESS_HELP = optparse.SUPPRESS_HELP
     pass
 
 # This help formatter does text wrapping and preserves newlines