Re: [CLI] Weird deprecation case

2024-06-08 Thread Gary Gregory
Adding a new API sounds like a good idea. Note: I added OptionGroup.isSelected() to refactor some existing code duplication. Gary On Sat, Jun 8, 2024, 2:26 AM Claude Warren wrote: > I have a case where I have multiple no-argument options in an OptionGroup. > The group comprises a deprecated op

[CLI] Weird deprecation case

2024-06-07 Thread Claude Warren
I have a case where I have multiple no-argument options in an OptionGroup. The group comprises a deprecated option and a current option. Basically an option rename. When I check for the option I simply check if (OptionGroup.getSelected() != null). However if the deprecated value is selected this