Merge "Do not dump the --config argument."

This commit is contained in:
Joel Galenson
2021-08-18 15:04:38 +00:00
committed by Gerrit Code Review

View File

@@ -1797,8 +1797,8 @@ def dump_config(parser, args):
# Also filter certain "temporary" arguments.
non_default_args = {}
for arg in args_dict:
if args_dict[arg] != parser.get_default(
arg) and arg != 'dump_config_and_exit' and arg != 'no_test_mapping':
if (args_dict[arg] != parser.get_default(arg) and arg != 'dump_config_and_exit'
and arg != 'no_test_mapping' and arg != 'config'):
non_default_args[arg.replace('_', '-')] = args_dict[arg]
# Write to the specified file.
with open(args.dump_config_and_exit, 'w') as f: