Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/1825#issuecomment-51556563
  
    @andrewor14 Ah OK, I only had a glance at `repl.Main` and `SparkILoop` 
before writing my last comment and thought `spark-shell` might accept all 
standard Scala REPL options by mistake.
    
    @sarutak Thanks for help fixing this. I'd also suggest what @pwendell 
suggested, i.e. using a similar while/case structure in 
[`bin/spark-sql`](https://github.com/apache/spark/blob/master/bin/spark-sql#L66)
 and 
[`sbin/start-thriftserver.sh`](https://github.com/apache/spark/blob/9de6a42bb34ea8963225ce90f1a45adcfee38b58/sbin/start-thriftserver.sh#L61-L76)
 to filter out the `-i <init-file>` option, can be easier to read. And we need 
to do the same thing for `pyspark`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to