[ 
https://issues.apache.org/jira/browse/HDDS-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16611860#comment-16611860
 ] 

Elek, Marton commented on HDDS-424:
-----------------------------------

[~anu] -D came from the original hadoop parameters which is copied (imho) from 
the java -D. Don't know the origin of -D, but agree that --define could be more 
easy to remember.

To use verb + noun approach: Yes, it's technically more difficult, for example 
'ozone oz volume --help' is more meaningful than 'ozone oz create --help'

But we can modify the argument parsing to support it. In case of 
ParsingException we can try to move common verbs in the args to a different 
position and try it again. It won't be displayed as the default order in the 
helps but can work with few line modifications.

Anyway, thanks the review and the feedback. I will check the documentation to 
update it as well...

> Consolidate ozone oz parameters to use GNU convention
> -----------------------------------------------------
>
>                 Key: HDDS-424
>                 URL: https://issues.apache.org/jira/browse/HDDS-424
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone CLI
>            Reporter: Elek, Marton
>            Assignee: Elek, Marton
>            Priority: Major
>             Fix For: 0.2.1, 0.3.0
>
>         Attachments: HDDS-424-ozone-0.2.001.patch
>
>
> In the common linux commands the convention is
> 1. avoid to use camelCase argument/flags
> 2. use double dash with words (--user) and singla dash with letters (-u) 
> I propose to modify ozone oz with:
> * Adding a second dash for all the word flags
> * Use 'key get', 'key info' instead of -infoKey
> * Define the input/output file name as a second argument instead of 
> --file/-file as it's always required



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to