summaryrefslogtreecommitdiffstats
path: root/test/fixture/SConstruct_HELP_AddOption.py
blob: f4ac237a22280fb7382da85481f1ebce29189b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

AddOption(
    '--debugging',
    dest='debugging',
    action='store_true',
    default=False,
    metavar='BDEBUGGING',
    help='Compile with debugging symbols',
)

vars = Variables()
vars.Add(ListVariable('buildmod', 'List of modules to build', 'none', ['python']))
DefaultEnvironment(tools=[])
env = Environment()

if ARGUMENTS.get('NO_APPEND',False):
    Help(vars.GenerateHelpText(env), append=False)
elif ARGUMENTS.get('LOCAL_ONLY',False):
    Help(vars.GenerateHelpText(env), append=True, local_only=True)
else:
    Help(vars.GenerateHelpText(env), append=True)