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

[jira] [Updated] (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 updated YARN-8998:
-------------------------------
    Summary: [Submarine] Simplify the condition check in CliUtils#argsForHelp  (was: Simplify the condition check in CliUtils#argsForHelp)

> [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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org