summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-06 21:01:10 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-06 21:01:10 +0200
commita66d538e8d3213b185d1dda6ebb44d22e7fdc707 (patch)
tree074edfcda0cc7043b5fc4a11236507cd211e29d3
parent3347bf94b255bbfe566952c509b7ff9963013078 (diff)
downloadpydanclick-a66d538e8d3213b185d1dda6ebb44d22e7fdc707.tar.gz
fixup! wip: fix required key for option arguments
-rw-r--r--pydanclick/core.py6
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
remember that computers suck.