hani-fouladgar opened a new pull request, #10494:
URL: https://github.com/apache/ozone/pull/10494

   ## What changes were proposed in this pull request?
   This PR deprecates multi-character short CLI options across Ozone PicoCLI 
tools, following the same pattern already used for `-id` and `-host` in 
`OmAddressOptions`. Long option names are now primary; old multi-char shorts 
remain supported but hidden from help. When a deprecated option is used, a 
warning is printed to stderr.
   
   ### Deprecate multi-char short options
   Multi-char short flags are split from their long equivalents. Long names are 
shown in help; deprecated shorts are @Deprecated, hidden = true, and merged via 
getters or ArgGroup for backward compatibility.
   ### Deprecation warnings
   - Added `DeprecatedCliOption` in `hadoop-hdds/cli-common` to detect 
deprecated options after parsing and print: `WARNING: Option '-ffc' is 
deprecated. Use '--filter-by-factor' instead.`
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-7957
   
   ## How was this patch tested?
   Unit tests added
   


-- 
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]

Reply via email to