F64116045 opened a new pull request, #10891: URL: https://github.com/apache/ozone/pull/10891
## What changes were proposed in this pull request? This pull request adds an integration test that verifies the main Ozone CLI command trees do not introduce new options using deprecated naming styles. The test checks command option metadata from picocli and fails when it finds: * multi-character single-dash options, such as `-host` * camelCase long options, such as `--replicationType` * underscore-separated long options, such as `--column_family` Existing deprecated options are allowed only if they are registered in `DeprecatedCliOption`. This helps prevent new inconsistent CLI option names while preserving compatibility for known deprecated aliases. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15558 ## How was this patch tested? ```bash mvn -B --no-transfer-progress -pl :ozone-integration-test -am -Dtest=TestCliOptionStyle test -DskipShade -DskipRecon -DskipDocs ``` Result: ```bash Tests run: 12, Failures: 0, Errors: 0, Skipped: 0 BUILD SUCCESS ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
