[ZEPPELIN-715]Changed the command line arguments

This commit is contained in:
Minwoo Kang 2016-03-24 12:27:18 +09:00
parent d0542277d2
commit 6829aaf919
4 changed files with 7 additions and 5 deletions

View file

@ -89,7 +89,7 @@ function getZeppelinVersion(){
fi
addJarInDir "${ZEPPELIN_HOME}/zeppelin-server/target/lib"
CLASSPATH+=":${ZEPPELIN_CLASSPATH}"
$ZEPPELIN_RUNNER -cp $CLASSPATH $ZEPPELIN_COMMANDLINE_MAIN -version
$ZEPPELIN_RUNNER -cp $CLASSPATH $ZEPPELIN_COMMANDLINE_MAIN -v
exit 0
}

View file

@ -19,7 +19,9 @@
# description: Start and stop daemon script for.
#
USAGE="Usage: zeppelin-daemon.sh [--config <conf-dir>] {start|stop|upstart|restart|reload|status|version}"
USAGE="-e Usage: zeppelin-daemon.sh\n\t
[--config <conf-dir>] {start|stop|upstart|restart|reload|status}\n\t
[--version | -v]"
if [[ "$1" == "--config" ]]; then
shift
@ -258,7 +260,7 @@ case "${1}" in
status)
find_zeppelin_process
;;
version | v | -v | -version)
-v | --version)
getZeppelinVersion
;;
*)

View file

@ -39,7 +39,7 @@ bin=$(cd "${bin}">/dev/null; pwd)
. "${bin}/common.sh"
if [ "$1" == "-version" ] || [ "$1" == "-v" ]; then
if [ "$1" == "--version" ] || [ "$1" == "-v" ]; then
getZeppelinVersion
fi

View file

@ -31,7 +31,7 @@ public class CommandLineUtils {
String usage = args[0].toLowerCase(Locale.US);
switch (usage){
case "-version":
case "--version":
case "-v":
System.out.println(Util.getVersion());
break;