From c6e9367bf921eb9deafe544c80e02dec305aa196 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 12 Nov 2025 21:39:02 +0000 Subject: [PATCH 001/163] Updates for the next release --- src/changes/changes.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 269763f54..7e291819a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,11 @@ Apache Commons CLI Release Notes + + + + + Multiple trailing BREAK_CHAR_SET characters cause infinite loop in HelpFormatter. From 515b761df371045a14e472d6318aef4574ab37b2 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 13 Nov 2025 01:51:55 +0000 Subject: [PATCH 002/163] Updates for the next release --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index ec44cb737..2d46bc2d3 100644 --- a/pom.xml +++ b/pom.xml @@ -91,12 +91,12 @@ 1.8 cli org.apache.commons.cli - 1.11.0 - 1.11.1 + 1.11.1 + 1.11.2 commons-cli-${commons.release.version} true RC1 - 1.10.0 + 1.11.0 org.apache.commons.cli CLI 12310463 From df82bc326534bb298cb11c44f7315b015fcc7154 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Nov 2025 05:22:33 -0500 Subject: [PATCH 003/163] Bump actions/dependency-review-action from 4.8.1 to 4.8.2 (#412) Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.8.1 to 4.8.2. - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](https://github.com/actions/dependency-review-action/compare/40c09b7dc99638e5ddb0bfd91c1673effc064d8a...3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261) --- updated-dependencies: - dependency-name: actions/dependency-review-action dependency-version: 4.8.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/dependency-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index a657a4ae2..11834ed9d 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -28,4 +28,4 @@ jobs: - name: 'Checkout Repository' uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: 'Dependency Review PR' - uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a # v4.8.1 + uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2 From 4788abb10495975b8cd2997e72e5b824aa918bdf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Nov 2025 05:23:07 -0500 Subject: [PATCH 004/163] Bump github/codeql-action from 4.31.2 to 4.31.3 (#413) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.2 to 4.31.3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/0499de31b99561a6d14a36a5f662c2a54f91beee...014f16e7ab1402f30e7c3329d33797e7948572db) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.31.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f8db33bf4..7da09b5ca 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,7 +57,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # 3.29.5 + uses: github/codeql-action/init@014f16e7ab1402f30e7c3329d33797e7948572db # 3.29.5 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -68,7 +68,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee # 3.29.5 + uses: github/codeql-action/autobuild@014f16e7ab1402f30e7c3329d33797e7948572db # 3.29.5 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -82,4 +82,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # 3.29.5 + uses: github/codeql-action/analyze@014f16e7ab1402f30e7c3329d33797e7948572db # 3.29.5 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 17444b765..c987fe6a1 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # 3.29.5 + uses: github/codeql-action/upload-sarif@014f16e7ab1402f30e7c3329d33797e7948572db # 3.29.5 with: sarif_file: results.sarif From 2d0a98bf93b615aef8a3206877d7ea6f607732cd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Nov 2025 08:18:21 -0500 Subject: [PATCH 005/163] Bump org.apache.commons:commons-parent from 91 to 92 (#414) Bumps [org.apache.commons:commons-parent](https://github.com/apache/commons-parent) from 91 to 92. - [Changelog](https://github.com/apache/commons-parent/blob/master/RELEASE-NOTES.txt) - [Commits](https://github.com/apache/commons-parent/commits) --- updated-dependencies: - dependency-name: org.apache.commons:commons-parent dependency-version: '92' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2d46bc2d3..61ada543c 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ org.apache.commons commons-parent - 91 + 92 4.0.0 commons-cli From a7c65c3c64be874452fe5aaec9f5797c0c69e493 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 14 Nov 2025 08:18:56 -0500 Subject: [PATCH 006/163] Bump org.apache.commons:commons-parent from 91 to 92 #414 --- src/changes/changes.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 7e291819a..dd3c4844e 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -26,6 +26,7 @@ + Bump org.apache.commons:commons-parent from 91 to 92 #414. From d7445462b064ba0ba62a187d712dcbe34cabcccb Mon Sep 17 00:00:00 2001 From: Sebb Date: Sat, 15 Nov 2025 17:45:46 +0000 Subject: [PATCH 007/163] Dependabot => quarterly --- .github/dependabot.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 00079caf1..90ec55f74 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -18,10 +18,8 @@ updates: - package-ecosystem: "maven" directory: "/" schedule: - interval: "weekly" - day: "friday" + interval: "quarterly" - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" - day: "friday" + interval: "quarterly" From fb4daea3d5e2bfa3f25aad6de531deb476a6aada Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 21 Nov 2025 14:13:15 +0000 Subject: [PATCH 008/163] Use HTTPS to download XML Schema --- src/site/xdoc/download_cli.xml | 2 +- src/site/xdoc/index.xml | 2 +- src/site/xdoc/issue-tracking.xml | 2 +- src/site/xdoc/mail-lists.xml | 2 +- src/site/xdoc/release_1_0.xml | 2 +- src/site/xdoc/release_1_2.xml | 2 +- src/site/xdoc/release_1_3.xml | 2 +- src/site/xdoc/release_1_3_1.xml | 2 +- src/site/xdoc/release_1_4.xml | 2 +- src/site/xdoc/upgrading-1.0-to-1.1.xml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/site/xdoc/download_cli.xml b/src/site/xdoc/download_cli.xml index 0cf212d97..7f5509a15 100644 --- a/src/site/xdoc/download_cli.xml +++ b/src/site/xdoc/download_cli.xml @@ -58,7 +58,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Download Apache Commons CLI Apache Commons Team diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index e94720f1a..63d7df6f8 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -19,7 +19,7 @@ --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Apache Commons CLI Apache Commons Team diff --git a/src/site/xdoc/issue-tracking.xml b/src/site/xdoc/issue-tracking.xml index 01ff5d784..0e31acc46 100644 --- a/src/site/xdoc/issue-tracking.xml +++ b/src/site/xdoc/issue-tracking.xml @@ -43,7 +43,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Apache Commons CLI Issue tracking Apache Commons Team diff --git a/src/site/xdoc/mail-lists.xml b/src/site/xdoc/mail-lists.xml index f1dc8158c..f45799390 100644 --- a/src/site/xdoc/mail-lists.xml +++ b/src/site/xdoc/mail-lists.xml @@ -41,7 +41,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Apache Commons CLI Mailing Lists Apache Commons Team diff --git a/src/site/xdoc/release_1_0.xml b/src/site/xdoc/release_1_0.xml index c4bed3274..82f967873 100644 --- a/src/site/xdoc/release_1_0.xml +++ b/src/site/xdoc/release_1_0.xml @@ -17,7 +17,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Release notes for CLI 1.0 Apache Commons Team diff --git a/src/site/xdoc/release_1_2.xml b/src/site/xdoc/release_1_2.xml index 9a978ed05..1f08f4599 100644 --- a/src/site/xdoc/release_1_2.xml +++ b/src/site/xdoc/release_1_2.xml @@ -17,7 +17,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Release notes for CLI 1.2 Apache Commons Team diff --git a/src/site/xdoc/release_1_3.xml b/src/site/xdoc/release_1_3.xml index 421485c04..f069ca03b 100644 --- a/src/site/xdoc/release_1_3.xml +++ b/src/site/xdoc/release_1_3.xml @@ -17,7 +17,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Release notes for CLI 1.3 Apache Commons Team diff --git a/src/site/xdoc/release_1_3_1.xml b/src/site/xdoc/release_1_3_1.xml index 2be55e05e..e86f45c5a 100644 --- a/src/site/xdoc/release_1_3_1.xml +++ b/src/site/xdoc/release_1_3_1.xml @@ -17,7 +17,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Release notes for CLI 1.3.1 Apache Commons Team diff --git a/src/site/xdoc/release_1_4.xml b/src/site/xdoc/release_1_4.xml index 7600ce15c..921fdc6e0 100644 --- a/src/site/xdoc/release_1_4.xml +++ b/src/site/xdoc/release_1_4.xml @@ -17,7 +17,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Release notes for CLI 1.4 Apache Commons Team diff --git a/src/site/xdoc/upgrading-1.0-to-1.1.xml b/src/site/xdoc/upgrading-1.0-to-1.1.xml index 4c804d17f..043df8ccb 100644 --- a/src/site/xdoc/upgrading-1.0-to-1.1.xml +++ b/src/site/xdoc/upgrading-1.0-to-1.1.xml @@ -17,7 +17,7 @@ limitations under the License. --> + xsi:schemaLocation="https://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd"> Upgrading from 1.0 to 1.1 Apache Commons Team From 219b00b7613b8b0a5fe6274ed3f468f0102e4a19 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 21 Nov 2025 14:39:14 +0000 Subject: [PATCH 009/163] Bump CodeQL 4.31.4 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7da09b5ca..7220552c3 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,7 +57,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@014f16e7ab1402f30e7c3329d33797e7948572db # 3.29.5 + uses: github/codeql-action/init@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # 4.31.4 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -68,7 +68,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@014f16e7ab1402f30e7c3329d33797e7948572db # 3.29.5 + uses: github/codeql-action/autobuild@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # 4.31.4 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -82,4 +82,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@014f16e7ab1402f30e7c3329d33797e7948572db # 3.29.5 + uses: github/codeql-action/analyze@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # 4.31.4 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index c987fe6a1..d2f613118 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@014f16e7ab1402f30e7c3329d33797e7948572db # 3.29.5 + uses: github/codeql-action/upload-sarif@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # 4.31.4 with: sarif_file: results.sarif From cb4d4390566275f9180eece320bf98a9b3929e95 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 21 Nov 2025 19:41:31 +0000 Subject: [PATCH 010/163] Bump actions/checkout from v5.0.0 to v6.0.0 --- .github/workflows/dependency-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 11834ed9d..b58ce9301 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -26,6 +26,6 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout Repository' - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: 'Dependency Review PR' uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2 From f707b442991f540b249061138925fd92b7598cd2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 22 Nov 2025 17:41:34 -0500 Subject: [PATCH 011/163] Bump org.apache.commons:commons-parent from 92 to 93 (#416) Bumps org.apache.commons:commons-parent from 92 to 93. --- updated-dependencies: - dependency-name: org.apache.commons:commons-parent dependency-version: '93' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 61ada543c..d43924f49 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ org.apache.commons commons-parent - 92 + 93 4.0.0 commons-cli From 8d35bd2c8e3684668bc3083643653e9b26fb8ccd Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 22 Nov 2025 17:42:06 -0500 Subject: [PATCH 012/163] Bump org.apache.commons:commons-parent from 92 to 93 #416 --- src/changes/changes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index dd3c4844e..b0b77e9d2 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -35,7 +35,7 @@ Add CommandLine.getOptionCount() to measure option repetition #396. - Bump org.apache.commons:commons-parent from 85 to 91 #393. + Bump org.apache.commons:commons-parent from 85 to 93 #393, #416. Bump commons-io:commons-io from 2.20.0 to 2.21.0. From d41627a563de39c57ea1a8bfc050045f85a11db8 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 22 Nov 2025 17:42:42 -0500 Subject: [PATCH 013/163] Revert "Bump org.apache.commons:commons-parent from 92 to 93 #416" This reverts commit 8d35bd2c8e3684668bc3083643653e9b26fb8ccd. --- src/changes/changes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index b0b77e9d2..dd3c4844e 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -35,7 +35,7 @@ Add CommandLine.getOptionCount() to measure option repetition #396. - Bump org.apache.commons:commons-parent from 85 to 93 #393, #416. + Bump org.apache.commons:commons-parent from 85 to 91 #393. Bump commons-io:commons-io from 2.20.0 to 2.21.0. From b3a5ce32e3e492f4b41803406f0e3d6bcdb22af9 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 22 Nov 2025 17:43:15 -0500 Subject: [PATCH 014/163] Bump org.apache.commons:commons-parent from 92 to 93 #416 --- src/changes/changes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index dd3c4844e..1c3c3fc86 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -26,7 +26,7 @@ - Bump org.apache.commons:commons-parent from 91 to 92 #414. + Bump org.apache.commons:commons-parent from 91 to 93 #414, #416. From ad3f14dfcbf29ef80e6b47d8ddd288efd0d8e598 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 28 Nov 2025 21:26:43 +0000 Subject: [PATCH 015/163] Bump github/codeql-action from 4.31.4 to 4.31.5 --- .github/workflows/codeql-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7220552c3..d2d8d268c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,7 +57,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # 4.31.4 + uses: github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # 4.31.5 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. From 9ffc6cb5ec3afce69c319741104fa2468fab95fd Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 28 Nov 2025 21:41:08 +0000 Subject: [PATCH 016/163] Bump github/codeql-action from 4.31.4 to 4.31.5 --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d2d8d268c..c03eba96e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -68,7 +68,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # 4.31.4 + uses: github/codeql-action/autobuild@fdbfb4d2750291e159f0156def62b853c2798ca2 # 4.31.5 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -82,4 +82,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # 4.31.4 + uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # 4.31.5 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index d2f613118..c8c946442 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # 4.31.4 + uses: github/codeql-action/upload-sarif@fdbfb4d2750291e159f0156def62b853c2798ca2 # 4.31.5 with: sarif_file: results.sarif From 46e26e06a6acda3adb8d7188e14e0b0ee9bcb404 Mon Sep 17 00:00:00 2001 From: Elric <60551689+DamnedElric@users.noreply.github.com> Date: Sun, 30 Nov 2025 21:49:32 +0100 Subject: [PATCH 017/163] Fix broken Introduction links on the cli doc site (#417) --- src/site/xdoc/index.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index 63d7df6f8..81bf52a25 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -58,13 +58,13 @@ usage: ls -C list entries by columns

- Check out the introduction page for a detailed presentation. + Check out the introduction page for a detailed presentation.

- A full User's Guide is available + A full User's Guide is available as are various project reports.

From 3a97cb92da65b0297c96a11e0cface8e51e2b0c2 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 30 Nov 2025 15:50:36 -0500 Subject: [PATCH 018/163] Fix broken Introduction links on the website #417 --- src/changes/changes.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 1c3c3fc86..1f657e1c9 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -24,6 +24,7 @@ + Fix broken Introduction links on the website #417. Bump org.apache.commons:commons-parent from 91 to 93 #414, #416. From f009e7b6f4d0c4024480a896b1d325f9332d3658 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 1 Dec 2025 09:56:00 -0500 Subject: [PATCH 019/163] Bump github/codeql-action from 4.31.5 to 4.31.6 --- .github/workflows/codeql-analysis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c03eba96e..a9bd0c697 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,7 +57,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # 4.31.5 + uses: github/codeql-action/init@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -68,7 +68,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@fdbfb4d2750291e159f0156def62b853c2798ca2 # 4.31.5 + uses: github/codeql-action/autobuild@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -82,4 +82,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # 4.31.5 + uses: github/codeql-action/analyze@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6 From 32c2134142444f2531bb0334154ac794f8bcdf92 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 1 Dec 2025 16:10:10 -0500 Subject: [PATCH 020/163] Bump github/codeql-action from 4.31.5 to 4.31.6 --- .github/workflows/scorecards-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index c8c946442..47ebd94a2 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@fdbfb4d2750291e159f0156def62b853c2798ca2 # 4.31.5 + uses: github/codeql-action/upload-sarif@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6 with: sarif_file: results.sarif From c03cec9db934b22eb3dbcb5ce7f4960572215631 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 3 Dec 2025 06:41:58 -0500 Subject: [PATCH 021/163] Javadoc: Fix spelling --- src/main/javadoc/overview.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/javadoc/overview.html b/src/main/javadoc/overview.html index b1f2cc340..42929e5ca 100644 --- a/src/main/javadoc/overview.html +++ b/src/main/javadoc/overview.html @@ -26,7 +26,7 @@

leaf1. Introducing Apache Commons CLI

-

The Apacahe Commons CLI component parses command-line arguments for your application.

+

The Apache Commons CLI component parses command-line arguments for your application.

Commons CLI parses command-line arguments using a descriptor of valid options (long and short), potentially with arguments.

From 13d7f9c14ac5b1187f12223d78553edb5d908851 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 3 Dec 2025 10:48:08 -0500 Subject: [PATCH 022/163] Javadoc --- .../apache/commons/cli/help/AbstractHelpFormatter.java | 8 ++++---- .../org/apache/commons/cli/help/OptionFormatter.java | 10 +++++----- .../java/org/apache/commons/cli/help/TextStyle.java | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java b/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java index 03a7f40ff..767abe38f 100644 --- a/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java +++ b/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java @@ -122,7 +122,7 @@ protected String getOptionGroupSeparator() { * Sets the comparator to use for sorting options. If set to {@code null} no sorting is performed. * * @param comparator The comparator to use for sorting options. - * @return this + * @return {@code this} instance. */ public B setComparator(final Comparator
- \ No newline at end of file + From 0744d6309cde24e2a00292d69af6f26ee27cd544 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 27 Feb 2026 20:41:39 -0500 Subject: [PATCH 061/163] Bump org.apache.commons:commons-parent from 96 to 97. --- pom.xml | 2 +- src/changes/changes.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 7689bad3c..a57cd8727 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ org.apache.commons commons-parent - 96 + 97 4.0.0 commons-cli diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 49f263d87..cb88233d3 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -29,7 +29,7 @@ Correct HelpFormatter Javadoc #418. - Bump org.apache.commons:commons-parent from 91 to 96 #414, #416. + Bump org.apache.commons:commons-parent from 91 to 97 #414, #416. [test] Bump org.apache.commons:commons-text from 1.14.0 to 1.15.0.
From b9cf0c685ad6b818a1c2e18ebc186c7bf885e2cf Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 2 Mar 2026 08:31:21 -0500 Subject: [PATCH 062/163] Bump github/codeql-action from 4.32.4 to 4.32.5. --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6c4aa3f57..e2ee451b4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4 + uses: github/codeql-action/init@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4 + uses: github/codeql-action/autobuild@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4 + uses: github/codeql-action/analyze@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index ef311f875..0518c2982 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4 + uses: github/codeql-action/upload-sarif@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 with: sarif_file: results.sarif From 1809ba5e05375b4b664e48247939b3b1ca8af403 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 6 Mar 2026 07:32:28 -0500 Subject: [PATCH 063/163] Bump github/codeql-action from 4.32.5 to 4.32.6 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e2ee451b4..4c52d9d27 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 + uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 + uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 + uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 0518c2982..8bb79683c 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 + uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 with: sarif_file: results.sarif From f32b5b585afcd0746fa75875b0f76b898a993b05 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 9 Mar 2026 08:43:32 -0400 Subject: [PATCH 064/163] Bump actions/upload-artifact from 6.0.0 to 7.0.0 --- .github/workflows/scorecards-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 8bb79683c..c170b0e14 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -57,7 +57,7 @@ jobs: publish_results: true - name: "Upload artifact" - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: SARIF file path: results.sarif From 609bfa248b67aa4ae3af9673d3aa980dc13e558a Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 19 Mar 2026 23:46:27 +0000 Subject: [PATCH 065/163] Add a reference to safe deserlialization --- src/site/xdoc/security.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/site/xdoc/security.xml b/src/site/xdoc/security.xml index 1b99e55f5..740c55065 100644 --- a/src/site/xdoc/security.xml +++ b/src/site/xdoc/security.xml @@ -47,5 +47,10 @@

None.

+
+

+ For information about safe deserialization, please see Safe Deserialization. +

+
From 77824e52df428808779a3b15a8ad945b94e234a9 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 20 Mar 2026 17:28:53 -0700 Subject: [PATCH 066/163] Bump github/codeql-action from 4.32.6 to 4.34.0 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4c52d9d27..e072e3dd7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + uses: github/codeql-action/autobuild@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index c170b0e14..b7c1f9fb3 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + uses: github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0 with: sarif_file: results.sarif From 6f4a473c36842398d22664141407ce5d8a48dafd Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 22 Mar 2026 22:19:17 -0700 Subject: [PATCH 067/163] Javadoc --- src/main/java/org/apache/commons/cli/help/TextStyle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/cli/help/TextStyle.java b/src/main/java/org/apache/commons/cli/help/TextStyle.java index b0d521ca2..f7851e4bc 100644 --- a/src/main/java/org/apache/commons/cli/help/TextStyle.java +++ b/src/main/java/org/apache/commons/cli/help/TextStyle.java @@ -28,7 +28,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more public final class TextStyle { /** - * The alignment possibilities. + * Enumerates alignment options. */ public enum Alignment { From eb84f5495a6f458d2fbf4f52a99090f6bb3a7851 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 22 Mar 2026 22:19:48 -0700 Subject: [PATCH 068/163] Javadoc --- src/main/java/org/apache/commons/cli/DefaultParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/cli/DefaultParser.java b/src/main/java/org/apache/commons/cli/DefaultParser.java index 6374a6e1d..637009832 100644 --- a/src/main/java/org/apache/commons/cli/DefaultParser.java +++ b/src/main/java/org/apache/commons/cli/DefaultParser.java @@ -157,7 +157,7 @@ public Builder setStripLeadingAndTrailingQuotes(final Boolean stripLeadingAndTra } /** - * Enum representing possible actions that may be done when "non option" is discovered during parsing. + * Enumerates possible actions that may be done when "non option" is discovered during parsing. * * @since 1.10.0 */ From 4d1a1664c99f1d108ab14c9229464bf1b2782e0a Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 27 Mar 2026 14:48:44 -0400 Subject: [PATCH 069/163] Bump github/codeql-action from 4.34.0 to 4.34.1 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e072e3dd7..1dd2d623c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0 + uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0 + uses: github/codeql-action/autobuild@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0 + uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index b7c1f9fb3..3156ec8b5 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4.34.0 + uses: github/codeql-action/upload-sarif@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 with: sarif_file: results.sarif From c6880c126934045ef0660bf703f966c938e424cd Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 30 Mar 2026 07:12:18 -0400 Subject: [PATCH 070/163] Bump actions/cache from 5.0.3 to 5.0.4 --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/maven.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 1dd2d623c..c51994f92 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -49,7 +49,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 #v5.0.3 + - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 #v5.0.4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1b5748f66..ebfe77ba9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 #v5.0.3 + - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 #v5.0.4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} From 0880a17e552dc3938c64fc86be510e191a51c43d Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 31 Mar 2026 11:48:08 -0400 Subject: [PATCH 071/163] Bump actions/dependency-review-action from 4.8.2 to 4.9.0 --- .github/workflows/dependency-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index a04da5090..f0d8ca94e 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -28,4 +28,4 @@ jobs: - name: 'Checkout Repository' uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: 'Dependency Review PR' - uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2 + uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0 From 5c0b94f80b5ea70ea49aadc9b5ff1288f2479b83 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 31 Mar 2026 21:44:10 -0400 Subject: [PATCH 072/163] Bump github/codeql-action from 4.34.1 to 4.35.1 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c51994f92..7d3074419 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 + uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 + uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 + uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 3156ec8b5..85a584736 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 + uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 with: sarif_file: results.sarif From 05e38fc9e5339f7614a4eb264a0909c241504be8 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 1 Apr 2026 06:20:26 -0400 Subject: [PATCH 073/163] Bump actions/checkout from 6.0.1 to 6.0.2 --- .github/workflows/scorecards-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 85a584736..a0e5b9faf 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -40,7 +40,7 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2 with: persist-credentials: false From 8ba7c15efb8bd90fe8e3b01635741335adb88c3b Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 1 Apr 2026 13:58:03 -0400 Subject: [PATCH 074/163] [Javadoc] Fix Checkstyle error - This can only happen if you use the latest version of Checkstyle available from commons-parent:98-SNAPSHOT - [ERROR] src/main/java/org/apache/commons/cli/OptionValidator.java:[101] (imports) UnusedImports: Javadoc comment at column 8 has parse error. Details: no viable alternative at input 'a single character {@code opt} that is either Chars.SP(special case), '?', '@' or a letter *
  • a multi character {@code opt} that only contains valid characters
  • * - *

    + *

    * A character is valid if any of the following conditions are true: + *

    *
      *
    • it is a letter
    • *
    • it is a currency symbol (such as '$')
    • @@ -111,8 +112,9 @@ private static boolean search(final char[] chars, final char c) { *
    • isIdentifierIgnorable returns true for the character
    • *
    • it is a hyphen/dash ('-')
    • *
    - *

    + *

    * In case {@code opt} is {@code null} no further validation is performed. + *

    * * @param option The option string to validate, may be null. * @throws IllegalArgumentException if the Option is not valid. From dcf216556128feb34bd9010f572def4480c16d54 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 3 Apr 2026 06:52:50 -0400 Subject: [PATCH 075/163] Run builds only on push to master and pull requests --- .github/workflows/maven.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ebfe77ba9..ed331f24a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,7 +15,11 @@ name: Java CI -on: [push, pull_request] +on: + push: + branches: + - 'master' + pull_request: {} permissions: contents: read From f0f3410551c15ad53dc85a50bec93dd62030248b Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 7 Apr 2026 12:25:03 -0400 Subject: [PATCH 076/163] Bump org.apache.commons:commons-parent from 97 to 98 --- pom.xml | 2 +- src/changes/changes.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a57cd8727..c72373871 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ org.apache.commons commons-parent - 97 + 98 4.0.0 commons-cli diff --git a/src/changes/changes.xml b/src/changes/changes.xml index cb88233d3..408890c49 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -29,7 +29,7 @@ Correct HelpFormatter Javadoc #418. - Bump org.apache.commons:commons-parent from 91 to 97 #414, #416. + Bump org.apache.commons:commons-parent from 91 to 98 #414, #416. [test] Bump org.apache.commons:commons-text from 1.14.0 to 1.15.0.
    From ceeb3eb502da1d6bb62a4649baba9b411d5899cd Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 14 Apr 2026 07:45:42 -0400 Subject: [PATCH 077/163] Bump action/cache from 5.0.4 to 5.0.5 --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/maven.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7d3074419..61abbca77 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -49,7 +49,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 #v5.0.4 + - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae #v5.0.5 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ed331f24a..0ac859b4a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -44,7 +44,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 #v5.0.4 + - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae #v5.0.5 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} From 8c1640b926584818fcaa2ffa2b583fa0e94b703e Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 14 Apr 2026 07:52:31 -0400 Subject: [PATCH 078/163] Bump actions/upload-artifact from 7.0.0 to 7.0.1 --- .github/workflows/scorecards-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index a0e5b9faf..4ad7175c8 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -57,7 +57,7 @@ jobs: publish_results: true - name: "Upload artifact" - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: SARIF file path: results.sarif From 97dc4bed0218ae0b210e6dd6419e0d6a7ecbf5b6 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 16 Apr 2026 07:10:09 -0400 Subject: [PATCH 079/163] Bump github/codeql-action from 4.35.1 to 4.35.2 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 61abbca77..b7b7fdf05 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + uses: github/codeql-action/autobuild@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 4ad7175c8..16e37f605 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 with: sarif_file: results.sarif From edc00c59d91bb3995efd42ae68e92b461e12a79f Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 23 Apr 2026 06:42:03 -0400 Subject: [PATCH 080/163] Bump commons-io:commons-io from 2.21.0 to 2.22.0. --- pom.xml | 2 +- src/changes/changes.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c72373871..b6ba9cef7 100644 --- a/pom.xml +++ b/pom.xml @@ -68,7 +68,7 @@ commons-io commons-io - 2.21.0 + 2.22.0 test diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 408890c49..757b2bd3c 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -31,6 +31,7 @@ Bump org.apache.commons:commons-parent from 91 to 98 #414, #416. [test] Bump org.apache.commons:commons-text from 1.14.0 to 1.15.0. + Bump commons-io:commons-io from 2.21.0 to 2.22.0. From 7be3807fa6fd4ad29241074f6ddeb23cfc677775 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 26 Apr 2026 07:31:08 -0400 Subject: [PATCH 081/163] Bump org.apache.commons:commons-parent from 98 to 99 --- pom.xml | 2 +- src/changes/changes.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b6ba9cef7..ceb0c98cf 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ org.apache.commons commons-parent - 98 + 99 4.0.0 commons-cli diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 757b2bd3c..e28659e1b 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -29,7 +29,7 @@ Correct HelpFormatter Javadoc #418. - Bump org.apache.commons:commons-parent from 91 to 98 #414, #416. + Bump org.apache.commons:commons-parent from 91 to 99 #414, #416. [test] Bump org.apache.commons:commons-text from 1.14.0 to 1.15.0. Bump commons-io:commons-io from 2.21.0 to 2.22.0. From a15bf01d84102b1892672ddf4818b5764e7ba111 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 5 May 2026 11:19:15 -0400 Subject: [PATCH 082/163] Bump github/codeql-action from 4.35.2 to 4.35.3 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b7b7fdf05..3571ff3f4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 + uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 + uses: github/codeql-action/autobuild@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 + uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 16e37f605..95dbcd027 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 + uses: github/codeql-action/upload-sarif@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 with: sarif_file: results.sarif From a014c11faca29ccdca1d87322922e08a1af68c98 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 9 May 2026 09:22:25 -0400 Subject: [PATCH 083/163] Bump experimental build from Java 26-ea to 27-ea and add Java 26 production build --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0ac859b4a..2efb9cafc 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -32,10 +32,10 @@ jobs: strategy: max-parallel: 20 matrix: - java: [ 8, 11, 17, 21, 25 ] + java: [ 8, 11, 17, 21, 25, 26 ] experimental: [false] include: - - java: 26-ea + - java: 27-ea experimental: true # - java: 27-ea # experimental: true From 29df694a6464963e11fe5fd5543ce2bc22db1779 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 12 May 2026 18:44:28 +0000 Subject: [PATCH 084/163] Bump github/codeql-action from 4.35.3 to 4.35.4 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3571ff3f4..f1e68973e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 + uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e# v4.35.4 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 + uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e# v4.35.4 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 + uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e# v4.35.4 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 95dbcd027..4ed093b53 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 + uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e# v4.35.4 with: sarif_file: results.sarif From e717fd63636f24ce6e5250d62524968d77b5d449 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 12 May 2026 18:46:13 +0000 Subject: [PATCH 085/163] Bump github/codeql-action from 4.35.3 to 4.35.4 --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/scorecards-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f1e68973e..e597a6dbb 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -58,7 +58,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e# v4.35.4 + uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -69,7 +69,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e# v4.35.4 + uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -83,4 +83,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e# v4.35.4 + uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 4ed093b53..2eed26f73 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -64,6 +64,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e# v4.35.4 + uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 with: sarif_file: results.sarif From 6dfbcc2991eb21ca59f375d067c470e004360523 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 16 May 2026 11:05:59 +0000 Subject: [PATCH 086/163] Use JUnit 5 conventions --- .../java/org/apache/commons/cli/help/HelpFormatterTest.java | 2 +- .../org/apache/commons/cli/help/TextHelpAppendableTest.java | 4 ++-- .../cli/help/{TextStyleTests.java => TextStyleTest.java} | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/test/java/org/apache/commons/cli/help/{TextStyleTests.java => TextStyleTest.java} (98%) diff --git a/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java b/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java index 41e9c08d0..4e54fb29f 100644 --- a/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java +++ b/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java @@ -161,7 +161,7 @@ void testPrintHelpHeader() throws IOException { } @Test - public void testPrintHelpWithIterableOptions() throws IOException { + void testPrintHelpWithIterableOptions() throws IOException { final StringBuilder sb = new StringBuilder(); final TextHelpAppendable serializer = new TextHelpAppendable(sb); HelpFormatter formatter = HelpFormatter.builder().setHelpAppendable(serializer).get(); diff --git a/src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java b/src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java index d29fcddbc..9c58427d5 100644 --- a/src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java +++ b/src/test/java/org/apache/commons/cli/help/TextHelpAppendableTest.java @@ -37,13 +37,13 @@ Licensed to the Apache Software Foundation (ASF) under one or more /** * Tests {@link TextHelpAppendable}. */ -public final class TextHelpAppendableTest { +final class TextHelpAppendableTest { private StringBuilder sb; private TextHelpAppendable underTest; @BeforeEach - public void setUp() { + void setUp() { sb = new StringBuilder(); underTest = new TextHelpAppendable(sb); } diff --git a/src/test/java/org/apache/commons/cli/help/TextStyleTests.java b/src/test/java/org/apache/commons/cli/help/TextStyleTest.java similarity index 98% rename from src/test/java/org/apache/commons/cli/help/TextStyleTests.java rename to src/test/java/org/apache/commons/cli/help/TextStyleTest.java index e745922a6..b3e946278 100644 --- a/src/test/java/org/apache/commons/cli/help/TextStyleTests.java +++ b/src/test/java/org/apache/commons/cli/help/TextStyleTest.java @@ -28,9 +28,9 @@ Licensed to the Apache Software Foundation (ASF) under one or more import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; -public class TextStyleTests { +class TextStyleTest { - public static Stream padTestData() { + static Stream padTestData() { final List lst = new ArrayList<>(); final TextStyle.Builder builder = TextStyle.builder(); builder.setIndent(5); From 1b1503363898d1ff4c34f215c283a1d6e2940435 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 16 May 2026 11:06:36 +0000 Subject: [PATCH 087/163] Bump org.apache.commons:commons-parent from 99 to 100 --- pom.xml | 2 +- src/changes/changes.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ceb0c98cf..e43114d78 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ org.apache.commons commons-parent - 99 + 100 4.0.0 commons-cli diff --git a/src/changes/changes.xml b/src/changes/changes.xml index e28659e1b..6b740aeab 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -29,7 +29,7 @@ Correct HelpFormatter Javadoc #418. - Bump org.apache.commons:commons-parent from 91 to 99 #414, #416. + Bump org.apache.commons:commons-parent from 91 to 100 #414, #416. [test] Bump org.apache.commons:commons-text from 1.14.0 to 1.15.0. Bump commons-io:commons-io from 2.21.0 to 2.22.0. From 96a18801b01b4bd85af0a4011c34cc28e9db7db4 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 16 May 2026 11:20:31 +0000 Subject: [PATCH 088/163] Add TODO comments for 2.0 --- .../java/org/apache/commons/cli/help/TextHelpAppendable.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/apache/commons/cli/help/TextHelpAppendable.java b/src/main/java/org/apache/commons/cli/help/TextHelpAppendable.java index 3e1e47758..0ca02fe9c 100644 --- a/src/main/java/org/apache/commons/cli/help/TextHelpAppendable.java +++ b/src/main/java/org/apache/commons/cli/help/TextHelpAppendable.java @@ -408,6 +408,7 @@ protected TextStyle.Builder resize(final TextStyle.Builder builder, final double */ public void setIndent(final int indent) { textStyleBuilder.setIndent(indent); + // TODO return this in 2.0 } /** @@ -417,6 +418,7 @@ public void setIndent(final int indent) { */ public void setLeftPad(final int leftPad) { textStyleBuilder.setLeftPad(leftPad); + // TODO return this in 2.0 } /** @@ -426,6 +428,7 @@ public void setLeftPad(final int leftPad) { */ public void setMaxWidth(final int maxWidth) { textStyleBuilder.setMaxWidth(maxWidth); + // TODO return this in 2.0 } /** From ca6d3362c46ef0f94bc10d92efaae8d3c93efc42 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 16 May 2026 11:48:33 +0000 Subject: [PATCH 089/163] Internal refactoring --- .../commons/cli/help/HelpFormatter.java | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/cli/help/HelpFormatter.java b/src/main/java/org/apache/commons/cli/help/HelpFormatter.java index f0723706a..c9d5080ba 100644 --- a/src/main/java/org/apache/commons/cli/help/HelpFormatter.java +++ b/src/main/java/org/apache/commons/cli/help/HelpFormatter.java @@ -18,7 +18,6 @@ Licensed to the Apache Software Foundation (ASF) under one or more package org.apache.commons.cli.help; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import org.apache.commons.cli.Option; @@ -62,6 +61,21 @@ Licensed to the Apache Software Foundation (ASF) under one or more */ public class HelpFormatter extends AbstractHelpFormatter { + /** + * The default "Since" column label. + */ + private static final String LABEL_SINCE = "Since"; + + /** + * The default "Description" column label. + */ + private static final String LABEL_DESCRIPTION = "Description"; + + /** + * The default "Options" column label. + */ + private static final String LABEL_OPTIONS = "Options"; + /** * A builder for the HelpFormatter. Intended to make more complex uses of the HelpFormatter class easier. Default values are: *