From a66d538e8d3213b185d1dda6ebb44d22e7fdc707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 6 Oct 2022 21:01:10 +0200 Subject: fixup! wip: fix required key for option arguments --- pydanclick/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pydanclick/core.py b/pydanclick/core.py index cfb5512..38285cc 100644 --- a/pydanclick/core.py +++ b/pydanclick/core.py @@ -95,8 +95,10 @@ def get_option_arguments( Generate the option information only of a click.Command. """ - arguments = OptionArgumentsSchema(help=parameter.description) - arguments.required = key in schema.required + arguments = OptionArgumentsSchema( + help=parameter.description, + required=key in schema.required, + ) option_min = parameter.minLength or parameter.exclusiveMinimum option_max = parameter.maxLength or parameter.exlusiveMaximum -- cgit v1.2.3