diff options
-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 |