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

getconfig: added option to control indentation of output

parent 963eee96
Branches basic_dataset
No related tags found
No related merge requests found
......@@ -9,6 +9,11 @@ Release Changes
Release 1.1.6
=============
Global
------
* getconfig: added option to control indentation of output
Tools
-----
......
......@@ -29,6 +29,8 @@ command_line.add_argument('update', nargs='?', default='update',
help='update script file name [%(default)s]')
command_line.add_argument('-V', '--version', action='version',
version=package_info.version)
command_line.add_argument('-i', '--indent-string', default=' ',
help='set indent string [%(default)s]')
args = command_line.parse_args()
......@@ -38,7 +40,7 @@ except IOError as error:
die("'{0}': {1}".format(error.filename, error.strerror))
config_data = ConfigObj(update_data.get_config_file(), interpolation=False,
write_empty_values=True)
write_empty_values=True, indent_type=args.indent_string)
for d in update_data.get_config_dicts():
config_data.merge(d)
......
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