click-contrib/click-option-group

handle_parse_result is called for each option

KalleDK opened this issue · 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
espdev commented

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. :)