[Title] Fixed CLI full command.
authorgyeongseok.seo <gyeongseok.seo@samsung.com>
Mon, 23 Jul 2012 08:31:20 +0000 (17:31 +0900)
committergyeongseok.seo <gyeongseok.seo@samsung.com>
Mon, 23 Jul 2012 08:31:20 +0000 (17:31 +0900)
[Type] feature
[Module] cli
[Priority] Minor
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: Ie2c588330a0ead91152084f78bb07243614678f0

org.tizen.cli/doc/install/bin_/webtizen

index 3ab0983..2736e50 100755 (executable)
@@ -29,18 +29,28 @@ OPT_TRACE=
 _print_usage()
 {
     echo "Usage: $SCRIPT [option] command [options]"
+    echo "Usage: $SCRIPT [option] short-command [options]"
     echo ""
     echo "$SCRIPT is a simple command line interface for Tizen widget."
     echo "The most frequently used commands are run and debug."
     echo ""
     echo "Commands:"
-    echo "  -p           :     Packaging widget project"
-    echo "  -s           :     Signing widget project"
-    echo "  -l           :     Display installed widgets handle and name list"
-    echo "  -i           :     Install widget package for target"
-    echo "  -u           :     Install widget package for target"
-    echo "  -r           :     Install wdiget package for target And Launch widget"
-    echo "  -d           :     Install wdiget package for target And Launch widget And activate debug mode"
+    echo "  packaging    :     Packaging widget project"
+    echo "  signing      :     Signing widget project"
+    echo "  list         :     Display installed widgets handle and name list"
+    echo "  install      :     Install widget package for target"
+    echo "  uninstall    :     Install widget package for target"
+    echo "  run          :     Install wdiget package for target And Launch widget"
+    echo "  debug        :     Install wdiget package for target And Launch widget And activate debug mode"
+    echo ""
+    echo "Short Commands:"
+    echo "  -p           :     packaging command"
+    echo "  -s           :     signing command"
+    echo "  -l           :     list command"
+    echo "  -i           :     install command"
+    echo "  -u           :     uninstall command"
+    echo "  -r           :     run command"
+    echo "  -d           :     debug command"
     echo ""
     echo "Option"
     echo "  -h           :     Display this usage information."
@@ -59,36 +69,35 @@ _check_zero_option()
 
 _select_option()
 {
-    echo "select_option : $1"
     case "$1" in
-        -h)
+        help|-h)
             _print_usage 0
             ;;
-        -p)
+        packaging|-p)
             MAIN=org.tizen.cli.exec.wgt.Main
             SCRIPT="web-packaging"
             ;;
-        -s)
+        signing|-s)
             MAIN=org.tizen.cli.exec.sign.Main
             SCRIPT="web-signing"
             ;;
-        -l)
+        list|-l)
             MAIN=org.tizen.cli.exec.query.Main
             SCRIPT="web-query"
             ;;
-        -i)
+        install|-i)
             MAIN=org.tizen.cli.exec.install.Main
             SCRIPT="web-install"
             ;;
-        -u)
+        uninstall|-u)
             MAIN=org.tizen.cli.exec.uninstall.Main
             SCRIPT="web-uninstall"
             ;;
-        -r)
+        run|-r)
             MAIN=org.tizen.cli.exec.run.Main
             SCRIPT="web-run"
             ;;
-        -d)
+        debug|-d)
             MAIN=org.tizen.cli.exec.debug.Main
             SCRIPT="web-debug"
             ;;
@@ -96,12 +105,10 @@ _select_option()
             _print_usage 1
             ;;
         esac
-    echo "remain option : $@"
 }
 
 _run_command()
 {
-    echo "_run_command() : $SCRIPT"
     while [ -h "$SCRIPT" ] ; do
         ls=`ls -ld "$SCRIPT"`
 
@@ -114,7 +121,6 @@ _run_command()
     done
 
     for WORD in $@; do
-            echo "WORD is $WORD"
             if [ "y" = "$READ_ARG" ]
             then
                     OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml"