This is an automated email from the ASF dual-hosted git repository. dill0wn pushed a commit to branch dw/defopt-opts in repository https://gitbox.apache.org/repos/asf/allura.git
commit 57c1410dd6639e613ff256e4e6caa5c4b9a4f307 Author: Dillon Walls <dillon.wa...@slashdotmedia.com> AuthorDate: Mon Jun 16 16:31:19 2025 +0000 small tweak to allow 'no_negated_flags=False' to defoptscript --- Allura/allura/scripts/scripttask.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Allura/allura/scripts/scripttask.py b/Allura/allura/scripts/scripttask.py index 5315c8b51..0c9d339ac 100644 --- a/Allura/allura/scripts/scripttask.py +++ b/Allura/allura/scripts/scripttask.py @@ -149,7 +149,10 @@ def _execute_task(cls, arg_string): @classmethod def main(cls, **extra_kwargs): - return defopt.run(cls.execute, no_negated_flags=True, **extra_kwargs) + defopt_params = dict( + no_negated_flags=True, + ) | extra_kwargs + return defopt.run(cls.execute, **defopt_params) @classmethod def execute(cls, *args, **kwargs):