Added check to ensure verbose output contains environment variables set with .env

This commit is contained in:
John-Mason P. Shackelford 2024-06-01 11:50:43 -04:00
parent 75ec0f6266
commit f4e4e3af87
No known key found for this signature in database
GPG key ID: B546E2175409B912
2 changed files with 22 additions and 0 deletions

View file

@ -124,6 +124,12 @@ def check_gitignore(git_root, io, ask=True):
def format_settings(parser, args):
show = scrub_sensitive_info(args, parser.format_values())
# clean up the headings for consistency w/ new lines
heading_env = "Environment Variables:"
heading_defaults = "Defaults:"
if heading_env in show:
show = show.replace(heading_env, "\n" + heading_env)
show = show.replace(heading_defaults, "\n" + heading_defaults)
show += "\n"
show += "Option settings:\n"
for arg, val in sorted(vars(args).items()):