Lines Matching refs:allowed_values
198 def DefaultVariable(name, help, allowed_values):
199 help = '%s (%s)' % (help, '|'.join(allowed_values))
202 if value != default_value and value not in allowed_values:
204 'Valid values are: {allowed_values}'.format(
205 name, value, allowed_values))
209 def AliasedListVariable(name, help, default_value, allowed_values, aliasing):
211 (help, ', '.join(allowed_values))
217 if v not in allowed_values:
223 translated = [aliasing[v] for v in allowed_values]
241 'release', allowed_values=config.build_options_modes),
243 'off', allowed_values=['on', 'off']),
246 'off', allowed_values=['on', 'off']),