mirror of https://github.com/ARMmbed/mbed-os.git
Simplify config param printing logic
parent
cdb4e98df3
commit
aac1099858
|
@ -63,11 +63,12 @@ if __name__ == '__main__':
|
||||||
if params:
|
if params:
|
||||||
print("Configuration parameters")
|
print("Configuration parameters")
|
||||||
print("------------------------")
|
print("------------------------")
|
||||||
for p in sorted(params):
|
for p in sorted(list(params.keys())):
|
||||||
for s in options.prefix:
|
if any(p.startswith(s) for s in options.prefix):
|
||||||
if p.startswith(s):
|
if options.verbose:
|
||||||
print(str(params[p]) if not options.verbose else params[p].get_verbose_description())
|
print(params[p].get_verbose_description())
|
||||||
break
|
else:
|
||||||
|
print(str(params[p]))
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
print("Macros")
|
print("Macros")
|
||||||
|
|
Loading…
Reference in New Issue