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

Daniel Templeton commented on HDFS-9125:
----------------------------------------

I haven't applied the patch and tested it, but it appears to print something 
like:

{code}
master:/home/nijel/hadoop-3.0.0-SNAPSHOT/bin # ./hdfs dfs -mkdirs
Usage: hdfs [OPTIONS] SUBCOMMAND [SUBCOMMAND OPTIONS]

...

SUBCOMMAND may print help when invoked w/o parameters or with -h.
-mkdirs: Unknown command
{code}

Perhaps it's a minor quibble, but shouldn't we print the error message before 
the usage message?

> Display help if the  command option to "hdfs dfs " is not valid
> ---------------------------------------------------------------
>
>                 Key: HDFS-9125
>                 URL: https://issues.apache.org/jira/browse/HDFS-9125
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: nijel
>            Assignee: nijel
>            Priority: Minor
>         Attachments: HDFS-9125_1.patch
>
>
> {noformat}
> master:/home/nijel/hadoop-3.0.0-SNAPSHOT/bin # ./hdfs dfs -mkdirs
> -mkdirs: Unknown command
> {noformat}
> Better to display the help info.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to