spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gianmario Spacagna (JIRA)" <>
Subject [jira] [Created] (SPARK-7367) CLI --help -h overrides the application arguments
Date Tue, 05 May 2015 11:57:01 GMT
Gianmario Spacagna created SPARK-7367:

             Summary: CLI --help -h overrides the application arguments
                 Key: SPARK-7367
             Project: Spark
          Issue Type: Bug
          Components: Spark Submit
    Affects Versions: 1.0.0
            Reporter: Gianmario Spacagna
            Priority: Minor

The spark-submit script will parse the --help argument even if when is provided as application

spark-submit --master local[*] --driver-memory 4G --class /MyLocalJAR.jar


spark-submit --master local[*] --driver-memory 4G --class /MyLocalJAR.jar

If my application is using a parsing library, such as Scallop, then it will never be able
to run the application with --help as argument.

I think the spark-submit script should only print the help message when is provided as single
argument like this:

spark-submit --help

or it should provide a separator for trailing arguments:

spark-submit --master local[*] --driver-memory 4G --class /MyLocalJAR.jar
-- --help --arg1 --arg2

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message