_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."
_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"
;;
_print_usage 1
;;
esac
- echo "remain option : $@"
}
_run_command()
{
- echo "_run_command() : $SCRIPT"
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
done
for WORD in $@; do
- echo "WORD is $WORD"
if [ "y" = "$READ_ARG" ]
then
OPT_LOGGING="-Dlog4j.configuration=log4j-${WORD}.xml"