From: hyeongseok.heo Date: Thu, 14 Nov 2013 11:19:34 +0000 (+0900) Subject: CLI : Add check if there is argument X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=172c6d3bc7c555bf62f41b9979910823f21187f9;p=sdk%2Ftools%2Fcli.git CLI : Add check if there is argument In case of no argument(sub-command) is submitted , do not set --current-workspace-path option which is raise error at parsing argument. Change-Id: I70dbcdb82820b69fae3a2568c3f4a0c5a7960101 Signed-off-by: hyeongseok.heo --- diff --git a/org.tizen.ncli.ide/tizen.sh b/org.tizen.ncli.ide/tizen.sh index 419ffe9..61bf5ce 100755 --- a/org.tizen.ncli.ide/tizen.sh +++ b/org.tizen.ncli.ide/tizen.sh @@ -21,7 +21,14 @@ for ARG in "$@" ; do ARGS="$ARGS $(escapeSpace $ARG)" done -ARGS="$ARGS --current-workspace-path $CURRENT_WORKSPACE_PATH" +#Check if sub-command is entered - first argument MUST be sub-command! +#If there is no sub-command , do not set --current-workspace-path option. +# @Added by Harry Hyeongseok Heo +# 2013.11.14 +if test $ARGS +then ARGS="$ARGS --current-workspace-path $CURRENT_WORKSPACE_PATH" +else ARGS="" +fi MAIN=org.tizen.ncli.ide.shell.Main