diff --git a/src/rougail/config.py b/src/rougail/config.py index 025c2fa75..ac66e5fa1 100644 --- a/src/rougail/config.py +++ b/src/rougail/config.py @@ -287,6 +287,7 @@ base_option_name: not_export_with_import: description: {_("In cache file, do not importation of Tiramisu and other dependencies")} + negative_description: {_("In cache file, do importation of Tiramisu and other dependencies")} default: false commandline: false diff --git a/src/rougail/convert.py b/src/rougail/convert.py index 2093d54e8..13dc2f55b 100644 --- a/src/rougail/convert.py +++ b/src/rougail/convert.py @@ -425,7 +425,7 @@ class ParserVariable: raise Exception( f'cannot redefine the inexisting family "{path}" in {filename}' ) - if exists is True: + if not self.load_unexist_redefine and exists is True: return extra_attrs = set(family_obj) - self.family_attrs if extra_attrs: diff --git a/src/rougail/structural_commandline/annotator.py b/src/rougail/structural_commandline/annotator.py index e3e9cab91..4e2fbaed4 100644 --- a/src/rougail/structural_commandline/annotator.py +++ b/src/rougail/structural_commandline/annotator.py @@ -50,7 +50,7 @@ class Annotator(Walk): self.not_for_commandline(variable) else: self.manage_alternative_name(variable) - self.manage_negative_description(variable) + self.manage_negative_description(variable) def not_for_commandline(self, variable) -> None: self.objectspace.properties.add(variable.path, "not_for_commandline", True) diff --git a/src/rougail/structural_commandline/config.py b/src/rougail/structural_commandline/config.py index 3deef437b..3b9dd6cf8 100644 --- a/src/rougail/structural_commandline/config.py +++ b/src/rougail/structural_commandline/config.py @@ -30,6 +30,7 @@ structural_commandline: add_extra_options: description: Add extra options to tiramisu-cmdline-parser + negative_description: Remove extra options to tiramisu-cmdline-parser default: true """ return { diff --git a/src/rougail/update/__init__.py b/src/rougail/update/__init__.py deleted file mode 100644 index 98edf0d56..000000000 --- a/src/rougail/update/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -""" -Silique (https://www.silique.fr) -Copyright (C) 2024 - -This program is free software: you can redistribute it and/or modify it -under the terms of the GNU Lesser General Public License as published by the -Free Software Foundation, either version 3 of the License, or (at your -option) any later version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -details. - -You should have received a copy of the GNU Lesser General Public License -along with this program. If not, see . -""" - -from .update import RougailUpgrade diff --git a/src/rougail/update/update.py b/src/rougail/update/update.py deleted file mode 100644 index e69de29bb..000000000