mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-715]Changed the command line arguments
This commit is contained in:
parent
d0542277d2
commit
6829aaf919
4 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
;;
|
||||
*)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue