Commit 24f01f88 authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

[config] correct handle of the --force option

parent ed1dcdf1
Pipeline #33442 passed with stage
in 6 minutes and 2 seconds
......@@ -134,6 +134,10 @@ def unset(substr, contain=False, force=False):
raise click.ClickException("Failed to change the configuration.")
if force:
for key in to_delete:
del rc[key]
click.echo("Registered for deletion:")
for key in to_delete:
click.echo('- "{}" : "{}"'.format(key, rc[key]))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment