Skip to content
Snippets Groups Projects
Commit 5e3c7bf1 authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

Changed getexp tool to print the full config when using higher verbosity

parent e89c3d16
No related branches found
No related tags found
No related merge requests found
......@@ -35,8 +35,9 @@ command_line.add_argument('--path', '-p',
help='search path for default config and templates')
command_line.add_argument('--readme', '-R', action='store_true',
help='only show header comment as in README file')
command_line.add_argument('--verbose', '-v', action='store_true',
help='show additional information')
command_line.add_argument('--verbose', '-v', action='count',
help='show all top-level settings, '
'or all settings if used twice')
args = command_line.parse_args()
......@@ -72,7 +73,10 @@ except ExpConfigError as error:
if args.readme:
print(config['EXP_DESCRIPTION'])
elif args.verbose:
elif args.verbose >= 2:
config.indent_type = ' '
config.write(sys.stdout)
elif args.verbose == 1:
items = config.items()
items.sort(key=lambda x: x[0])
for (key, value) in items:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment