You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Zhankun Tang (JIRA)" <ji...@apache.org> on 2018/11/12 04:16:00 UTC

[jira] [Resolved] (YARN-8998) [Submarine] Simplify the condition check in CliUtils#argsForHelp

     [ https://issues.apache.org/jira/browse/YARN-8998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhankun Tang resolved YARN-8998.
--------------------------------
    Resolution: Duplicate

Merge this with YARN-8996

> [Submarine] Simplify the condition check in CliUtils#argsForHelp
> ----------------------------------------------------------------
>
>                 Key: YARN-8998
>                 URL: https://issues.apache.org/jira/browse/YARN-8998
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Zhankun Tang
>            Assignee: Zhankun Tang
>            Priority: Minor
>         Attachments: YARN-8998-trunk-001.patch
>
>
> {code:java}
> if (args[0].equals("-h") || args[0].equals("--help")) {
>   return true;
> }
> {code}
> Can be simlified to:
> {code:java}
>  return args[0].equals("-h") || args[0].equals("--help");
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org