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 cb22b5dc1b0b2420a5a872113e7ac2857c0614d1..54e9107005a10ab985e7a974965a4068ce5421b0 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