Skip to content

Commit

Permalink
Tweak verbose output for configuration defaults
Browse files Browse the repository at this point in the history
* Show configuration params in sorted way
* Slightly tweak the output format
  • Loading branch information
jenisys committed Dec 10, 2022
1 parent 018a9d0 commit 234c32e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions behave/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,9 @@ def load_configuration(defaults, verbose=False):
defaults.update(read_configuration(filename))

if verbose:
print("Using defaults:")
for k, v in six.iteritems(defaults):
print("%15s %s" % (k, v))
print("Using CONFIGURATION DEFAULTS:")
for k, v in sorted(six.iteritems(defaults)):
print("%18s: %s" % (k, v))


def setup_parser():
Expand Down

0 comments on commit 234c32e

Please sign in to comment.