click-option-group icon indicating copy to clipboard operation
click-option-group copied to clipboard

Option groups missing in Click

Results 7 click-option-group issues
Sort by recently updated
recently updated
newest added

I have a use case where I'd like to accept a list of items contained in a file given by -f or an arbitrary number of positional arguments. Unfortunately Click...

enhancement
help wanted
question

If I have two options sharing the same variable name, like this: ```python #!/usr/bin/env python import click from click_option_group import optgroup, MutuallyExclusiveOptionGroup @click.command() @click.pass_context @optgroup.group('Output format', cls=MutuallyExclusiveOptionGroup) @optgroup.option( "--text", "output_format",...

enhancement
help wanted
incompatibility

Hi! In my current project, I have my own subclass of `click.Command` where I pre-initialise a bunch of options in `self.params`. ```python class MyCommand(click.Command): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)...

enhancement
help wanted

I don't know if this is working as intended, but it feels strange the handle_parse_result is called once for each option. - If you want to loop them, you can...

This might be a bit tricky to implement, but would be nice to have: ```python @click.command @optgroup.group('My group', 'my_group') @optgroup.option('--foo') @optgroup.option('--bar') @click.option('--click-option') def my_func(my_group,click_option): pass ``` I.e. access the whole...

help wanted

For now, just running mypy. There are not many things to fix thankfully though

Because `optgroup.group` and `optgroup.option` do not have hints on their return types. mypy generates errors at the call site like `Untyped decorator makes function "cli" untyped`. I think this could...

help wanted