You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2015/05/01 20:27:00 UTC

spark git commit: Limit help option regex

Repository: spark
Updated Branches:
  refs/heads/master 7630213ca -> c8c481da1


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 <ch...@10gen.com>

Closes #5816 from cbiow/patch-1 and squashes the following commits:

36b3726 [Chris Biow] Limit help option regex


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c8c481da
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c8c481da
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c8c481da

Branch: refs/heads/master
Commit: c8c481da18688e684d4e34f14c5afa0b5d37a618
Parents: 7630213
Author: Chris Biow <ch...@10gen.com>
Authored: Fri May 1 19:26:55 2015 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Fri May 1 19:26:55 2015 +0100

----------------------------------------------------------------------
 bin/spark-shell2.cmd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c8c481da/bin/spark-shell2.cmd
----------------------------------------------------------------------
diff --git a/bin/spark-shell2.cmd b/bin/spark-shell2.cmd
index 02f51fe..00fd30f 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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org