[
https://issues.apache.org/jira/browse/HDDS-8066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17696267#comment-17696267
]
Attila Doroszlai commented on HDDS-8066:
----------------------------------------
I'd prefer moving away from {{\-id}}, which is a multi-char short option. CLI
allows combining short options, i.e. {{\-i}} and {{\-d}} is the same as
{{\-id}}. If we use multi-char short options, we give up either the ability to
combine them or the specific letters.
> CLI: Add short hand `-id` for `--om-service-id`
> -----------------------------------------------
>
> Key: HDDS-8066
> URL: https://issues.apache.org/jira/browse/HDDS-8066
> Project: Apache Ozone
> Issue Type: Task
> Reporter: Siyao Meng
> Priority: Major
>
> We had previously added {{\-o}} as a short hand for {{\-\-om-service-id}} but
> is not widely used. It has only been added here:
> https://github.com/apache/ozone/blob/ccf1b7c18f8a4cc46907505ba73c9b93f29ad6c9/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/OmBucketReadWriteKeyOps.java#L72
> And we are already widely using {{\-id}} as the short option for (OM)
> {{\-\-service-id}} in admin commands:
> https://github.com/apache/ozone/blob/b2fca4386ccd5075d0deeac04c7c438e5ccfee2e/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/om/GetServiceRolesSubcommand.java#L45
> Proposal: Add {{\-id}} as the short option in all {{\-\-om-service-id}}
> occurrences.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]