GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix issue with groups not being reported in help output. by Claudenw · Pull Request #411 · apache/commons-cli

Conversation

@Claudenw

@Claudenw Claudenw commented Nov 1, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

AbstractHelpFormatter:

  • Swapped printHelp using Iterable with printHelp using Options. Effectively switching to using Options class to print the help.

  • Removed public String toSyntaxOptions(final Iterable options) as it was added in this version and should have only been used internally.

HelpFormatterTest:

  • removed toSyntaxOptions using Iterable test.

  • added a printHelpTest with Iterable 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.

Thanks for your contribution to Apache Commons! Your help is appreciated!

Before you push a pull request, review this list:

  • Read the contribution guidelines for this project.
  • Read the ASF Generative Tooling Guidance 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 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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Claudenw
Fix issue with groups not being reported in help output.
fb8b275
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.
@Claudenw
Claudenw requested a review from garydgregory November 1, 2025 16:56
@Claudenw
Claudenw marked this pull request as draft November 1, 2025 16:57
@Claudenw

Claudenw commented Nov 1, 2025

Copy link
Copy Markdown
Contributor Author

@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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garydgregory
Don't break binary compatibility
0c72629
@garydgregory

garydgregory commented Nov 1, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Hi @Claudenw

Thank you for the PR :)

You CANNOT break binary compatibility within a major release line.

I've added back toSyntaxOptions() in this PR. Let's see about the other breakage...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garydgregory
Restore test
1cbac2f
Add test for toSyntaxOptions with iterable of options
@Claudenw

Claudenw commented Nov 3, 2025

Copy link
Copy Markdown
Contributor Author

@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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garydgregory

garydgregory commented Nov 3, 2025

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Claudenw
fixed issues arising from reverting incompatible binary changes
9a34a87
@Claudenw

Claudenw commented Nov 3, 2025

Copy link
Copy Markdown
Contributor Author

2 comments.

DOH!

and I think this should be versioned as 1.10.1 unless there are other changes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garydgregory

garydgregory commented Nov 3, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Claudenw
Claudenw marked this pull request as ready for review November 3, 2025 22:10
@garydgregory
garydgregory merged commit d4cead7 into apache:master Nov 5, 2025
@garydgregory

garydgregory commented Nov 5, 2025

Copy link
Copy Markdown
Member

Thank you @Claudenw , merged!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

garydgregory added a commit that referenced this pull request Nov 5, 2025
@garydgregory
ix issue with groups not being reported in help output. #411
99682bc
@dongjoon-hyun dongjoon-hyun mentioned this pull request Feb 25, 2026
[SPARK-55677][BUILD] Upgrade commons-cli to 1.11.0 apache/spark#54471
Closed
dongjoon-hyun added a commit to apache/spark that referenced this pull request Feb 25, 2026
@dongjoon-hyun
[SPARK-55677][BUILD] Upgrade commons-cli to 1.11.0
564f20b
### What changes were proposed in this pull request?

This PR aims to upgrade `commons-cli` to 1.11.0.

### Why are the changes needed?

To bring the latest bug fixes.
- https://commons.apache.org/proper/commons-cli/changes.html#a1.11.0 ( 2025-11-08)
  - apache/commons-cli#396
  - apache/commons-cli#411

### Does this PR introduce _any_ user-facing change?

No behavior change.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: `Gemini 3.1 Pro (High)` on `Antigravity`

Closes #54471 from dongjoon-hyun/SPARK-55677.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@garydgregory garydgregory Awaiting requested review from garydgregory

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Claudenw @garydgregory
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.