diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-10-06 21:01:10 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-10-06 21:01:10 +0200 |
commit | a66d538e8d3213b185d1dda6ebb44d22e7fdc707 (patch) | |
tree | 074edfcda0cc7043b5fc4a11236507cd211e29d3 | |
parent | 3347bf94b255bbfe566952c509b7ff9963013078 (diff) | |
download | pydanclick-a66d538e8d3213b185d1dda6ebb44d22e7fdc707.tar.gz |
fixup! wip: fix required key for option arguments
-rw-r--r-- | pydanclick/core.py | 6 |
1 files 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 |