Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/799#discussion_r12765879
--- Diff: bin/spark-shell ---
@@ -28,7 +28,7 @@ esac
# Enter posix mode for bash
set -o posix
-if [[ "$@" == *--help* ]]; then
+if [[ "$@" = *--help ]] || [[ "$@" = *--h ]]; then
--- End diff --
What is the second condition for? It doesn't seem to match `-h`. I noticed
if I run this with `-h` then I seem to just get the help option from
`spark-submit`.
```
patrick@patrick-t430s:~/Documents/spark$ ./bin/spark-shell -h
Usage: spark-submit [options] <app jar | python file> [app options]
Options:
```
---
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.
---