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:
|
||||
print("Configuration parameters")
|
||||
print("------------------------")
|
||||
for p in sorted(params):
|
||||
for s in options.prefix:
|
||||
if p.startswith(s):
|
||||
print(str(params[p]) if not options.verbose else params[p].get_verbose_description())
|
||||
break
|
||||
for p in sorted(list(params.keys())):
|
||||
if any(p.startswith(s) for s in options.prefix):
|
||||
if options.verbose:
|
||||
print(params[p].get_verbose_description())
|
||||
else:
|
||||
print(str(params[p]))
|
||||
print("")
|
||||
|
||||
print("Macros")
|
||||
|
|
Loading…
Reference in New Issue