hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7995) GenericOptionsParser ought to have better options parsing, and not pick only the options in the front
Date Wed, 15 Feb 2012 17:35:00 GMT

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

Daryn Sharp commented on HADOOP-7995:
-------------------------------------

Here's a few examples of how conflicts may occur if the generic options can appear anywhere
in the cmdline:
* du -D dir
* ln -fs path

@Harsh
Do you feel this is compelling enough to close the jira?
                
> GenericOptionsParser ought to have better options parsing, and not pick only the options
in the front
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7995
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7995
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.23.0
>            Reporter: Harsh J
>            Priority: Minor
>              Labels: newbie
>
> The ToolRunner provided GenericOptionsParser stops parsing known options when it encounters
the first unknown option string in the String[] today.
> Ideally we should have it be more intelligent and sift through the whole array to pick
up all opts, and not just the opts that are at the front of the invoked CLI.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message