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

handle_parse_result is called for each option

Open KalleDK opened this issue 1 year ago • 1 comments

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 do so via self.get_options
  • All the implementations seems to ignore which option is currently being parsed
  • The field values is not changing based on callback on the option, so no real benefit there

KalleDK avatar Sep 07 '23 12:09 KalleDK

Hello @KalleDK,

Click has an architecture that is quite difficult to extend. If you want to do something that isn't built into the click concept, things start to get complicated.

If you have any ideas on how to improve the code, I'm always happy to see a PR. :)

espdev avatar Nov 02 '23 20:11 espdev