cloup._params¶
Classes¶
|
A click.Option with an extra field |
Contents¶
-
class
cloup._params.GroupedOption(*args, group=None, **attrs)[source]¶ Bases:
click.OptionA click.Option with an extra field
groupof typeOptionGroup.
-
cloup._params.option(*param_decls, cls=None, group=None, **kwargs)[source]¶ Attaches an
Optionto the command. Refer toclick.Optionandclick.Parameterfor more info about the accepted parameters.In your IDE, you won’t see arguments that has to do with shell completion, because they are different in Click 7 and 8 (both supported by Cloup):
in Click 7, it’s
autocompletionin Click 8, it’s
shell_complete.
These arguments have different semantics, refer to Click’s docs.