Skip to content

Commit 7e41eb4

Browse files
peterbarkertpwrules
authored andcommitted
waf: suppress help output on all-lower-case-and-dashes options
1 parent f6de8ae commit 7e41eb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wscript

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# encoding: utf-8
33
# flake8: noqa
44

5+
import optparse
56
import os.path
67
import os
78
import sys
@@ -118,13 +119,13 @@ def add_build_options(g):
118119
g.add_option(lower_enable_option,
119120
action='store_true',
120121
default=False,
121-
help=enable_description)
122+
help=optparse.SUPPRESS_HELP)
122123
lower_disable_option = disable_option.lower().replace("_", "-")
123124
if lower_disable_option != disable_option:
124125
g.add_option(lower_disable_option,
125126
action='store_true',
126127
default=False,
127-
help=disable_description)
128+
help=optparse.SUPPRESS_HELP)
128129

129130
def add_script_options(g):
130131
'''add any drivers or applets from libraries/AP_Scripting'''

0 commit comments

Comments
 (0)