diff options
author | Chris Biow <chris.biow@10gen.com> | 2015-05-01 19:26:55 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-05-01 19:26:55 +0100 |
commit | c8c481da18688e684d4e34f14c5afa0b5d37a618 (patch) | |
tree | d97d1f6c25460b8c077dbdde7542c6afa440e30f /bin | |
parent | 7630213cab1f653212828f045cf1d7d1870abea0 (diff) | |
download | spark-c8c481da18688e684d4e34f14c5afa0b5d37a618.tar.gz spark-c8c481da18688e684d4e34f14c5afa0b5d37a618.tar.bz2 spark-c8c481da18688e684d4e34f14c5afa0b5d37a618.zip |
Limit help option regex
Added word-boundary delimiters so that embedded text such as "-h" within command line options and values doesn't trigger the usage script and exit.
Author: Chris Biow <chris.biow@10gen.com>
Closes #5816 from cbiow/patch-1 and squashes the following commits:
36b3726 [Chris Biow] Limit help option regex
Diffstat (limited to 'bin')
-rw-r--r-- | bin/spark-shell2.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/spark-shell2.cmd b/bin/spark-shell2.cmd index 02f51fe59a..00fd30fa38 100644 --- a/bin/spark-shell2.cmd +++ b/bin/spark-shell2.cmd @@ -19,7 +19,7 @@ rem set SPARK_HOME=%~dp0.. -echo "%*" | findstr " --help -h" >nul +echo "%*" | findstr " \<--help\> \<-h\>" >nul if %ERRORLEVEL% equ 0 ( call :usage exit /b 0 |