[ https://issues.apache.org/jira/browse/HADOOP-7341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041678#comment-13041678 ]
Aaron T. Myers commented on HADOOP-7341: ---------------------------------------- Now seems like a great time to scrap {{CommandFormat}} altogether, in favor of the capabilities provided by Commons CLI, a dependency which Hadoop already includes for use in the {{GenericOptionsParser}}. Thoughts? > Fix option parsing in CommandFormat > ----------------------------------- > > Key: HADOOP-7341 > URL: https://issues.apache.org/jira/browse/HADOOP-7341 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 0.23.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > > CommandFormat currently allows options in any location within the args. This > is not the intended behavior for FsShell commands. Prior to the redesign, > the commands used to expect option processing to stop at the first non-option. > CommandFormat was an existing class prior the redesign, but it was only used > by "count" to find the -q flag. All commands were converted to using this > class, thus inherited the unintended behavior. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira