You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Claudenw (via GitHub)" <gi...@apache.org> on 2025/11/01 16:57:00 UTC

[PR] Fix issue with groups not being reported in help output. [commons-cli]

Claudenw opened a new pull request, #411:
URL: https://github.com/apache/commons-cli/pull/411

   AbstractHelpFormatter:
   
    * Swapped printHelp using Iterable<Option> with printHelp using Options.  Effectively switching to using Options class to print the help.
   
    * Removed public String toSyntaxOptions(final Iterable<Option> options) as it was added in this version and should have only been used internally.
   
   HelpFormatterTest:
   
    * removed toSyntaxOptions using Iterable<Option> test.
   
    * added a printHelpTest with Iterable<Option> as previously we depended on printHelpTest with Option to test the code branch.
   
    * added verifyOptionGroupingOutput as a test to show that reported issue is corrected.
   
   <!--
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
   
       https://www.apache.org/licenses/LICENSE-2.0
   
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
   -->
   
   Thanks for your contribution to [Apache Commons](https://commons.apache.org/)! Your help is appreciated!
   
   Before you push a pull request, review this list:
   
   - [ ] Read the [contribution guidelines](CONTRIBUTING.md) for this project.
   - [ ] Read the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) if you use Artificial Intelligence (AI).
   - [ ] I used AI to create any part of, or all of, this pull request.
   - [ ] Run a successful build using the default [Maven](https://maven.apache.org/) goal with `mvn`; that's `mvn` on the command line by itself.
   - [ ] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible, but it is a best practice.
   - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
   - [ ] Each commit in the pull request should have a meaningful subject line and body. Note that a maintainer may squash commits during the merge process.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix issue with groups not being reported in help output. [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #411:
URL: https://github.com/apache/commons-cli/pull/411#issuecomment-3480029036

   Hi @Claudenw 
   
   We are both right 😉 
   
   > If a method was added in 1.10.0-SNAPSHOT can it not be removed before 1.10.0 is released? The method in question was added in 1.10.0-SNAPSHOT and I thought this was 1.10.0 that we are working on.
   
   Yes, but version 1.10.0 was released in September this year. We are now on 1.11.0-SNAPSHOT.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix issue with groups not being reported in help output. [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #411:
URL: https://github.com/apache/commons-cli/pull/411#issuecomment-3481647853

   Hello @Claudenw 
   The next version will be 1.10.0, see `changes.xml`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix issue with groups not being reported in help output. [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #411:
URL: https://github.com/apache/commons-cli/pull/411


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix issue with groups not being reported in help output. [commons-cli]

Posted by "Claudenw (via GitHub)" <gi...@apache.org>.
Claudenw commented on PR #411:
URL: https://github.com/apache/commons-cli/pull/411#issuecomment-3476558324

   @garydgregory I removed a method that was added in 1.10.0  This caused the build to fail.  I can put it back if that is what we need to do.  But we should mark it as as do not use.
   
   In addition, there is no jira ticket for this as none was created to go with the reported issue.  I can create one if you wish.  I did not as I was not sure how you wanted to handle this and because I am pressed for time and I wanted to at least get the fix in front of your eyes ASAP.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix issue with groups not being reported in help output. [commons-cli]

Posted by "Claudenw (via GitHub)" <gi...@apache.org>.
Claudenw commented on PR #411:
URL: https://github.com/apache/commons-cli/pull/411#issuecomment-3479909525

   @garydgregory just for my clarification, when does the inclusion of a new method become part of the binary compatibility?
   
   If a method was added in 1.10.0-SNAPSHOT can it not be removed before 1.10.0 is released?  The method in question was added in 1.10.0-SNAPSHOT and I thought this was 1.10.0 that we are working on.  Hence my confusion.
   
   Please clarify for my edification.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix issue with groups not being reported in help output. [commons-cli]

Posted by "Claudenw (via GitHub)" <gi...@apache.org>.
Claudenw commented on PR #411:
URL: https://github.com/apache/commons-cli/pull/411#issuecomment-3481571872

   2 comments.
   
   DOH!
   
   and I think this should be versioned as 1.10.1 unless there are other changes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix issue with groups not being reported in help output. [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #411:
URL: https://github.com/apache/commons-cli/pull/411#issuecomment-3476576973

   Hi @Claudenw 
   
   Thank you for the PR :)
   
   You CANNOT break binary compatibility within a major release line.
   
   I've added back `toSyntaxOptions()` in the PR. Let's see about the other breakage...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix issue with groups not being reported in help output. [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #411:
URL: https://github.com/apache/commons-cli/pull/411#issuecomment-3490949082

   Thank you @Claudenw , merged!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org