hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhankun Tang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-8998) [Submarine] Simplify the condition check in CliUtils#argsForHelp
Date Fri, 09 Nov 2018 07:40:00 GMT

     [ 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


Mime
View raw message