swift-argument-parser icon indicating copy to clipboard operation
swift-argument-parser copied to clipboard

Fix handling of visibility with nested OptionGroups.

Open bob-wilson opened this issue 11 months ago • 0 comments

The visibility of OptionGroups is ignored if they are nested inside another OptionGroup. Instead of trying to filter groups when creating an ArgumentSet, use the OptionGroup's visibility to modify the arguments within the group.

Checklist

  • [x] I've added at least one test that validates that my change is working, if appropriate
  • [x] I've followed the code style of the rest of the project
  • [x] I've read the Contribution Guidelines
  • [x] I've updated the documentation if necessary

bob-wilson avatar Dec 11 '25 22:12 bob-wilson