add over.app.Main.setup arg reset

This commit is contained in:
Martin Sekera 2018-12-12 22:40:28 +01:00
parent cc7d97c811
commit f31e2137ac
2 changed files with 9 additions and 5 deletions

View file

@ -726,11 +726,15 @@ class Main:
for action in scheduled_actions: for action in scheduled_actions:
action() action()
def setup(self, command_line=None, force_config=None): def setup(self, command_line=None, force_config=None, reset=False):
""" """
@while determining application configuration @while determining application configuration
""" """
if reset:
for option in self.options.values():
option.reset(True)
self.parse_config(force_config) self.parse_config(force_config)
self.parse_command_line(command_line) self.parse_command_line(command_line)

View file

@ -2,7 +2,7 @@
# encoding: utf-8 # encoding: utf-8
major = 2 # VERSION_MAJOR_IDENTIFIER major = 2 # VERSION_MAJOR_IDENTIFIER
minor = 0 # VERSION_MINOR_IDENTIFIER minor = 1 # VERSION_MINOR_IDENTIFIER
# VERSION_LAST_MM 2.0 # VERSION_LAST_MM 2.1
patch = 10 # VERSION_PATCH_IDENTIFIER patch = 0 # VERSION_PATCH_IDENTIFIER
str = "2.0.10" # VERSION_STRING_IDENTIFIER str = "2.1.0" # VERSION_STRING_IDENTIFIER