Skip to content

Commit 74469ef

Browse files
theotherjimmyadbridge
authored andcommitted
Simplify config param printing logic
1 parent 7b1cb6d commit 74469ef

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tools/get_config.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@
6363
if params:
6464
print("Configuration parameters")
6565
print("------------------------")
66-
for p in sorted(params):
67-
for s in options.prefix:
68-
if p.startswith(s):
69-
print(str(params[p]) if not options.verbose else params[p].get_verbose_description())
70-
break
66+
for p in sorted(list(params.keys())):
67+
if any(p.startswith(s) for s in options.prefix):
68+
if options.verbose:
69+
print(params[p].get_verbose_description())
70+
else:
71+
print(str(params[p]))
7172
print("")
7273

7374
print("Macros")

0 commit comments

Comments
 (0)