#!/bin/sh 
if [ $# -eq 0 ]; then
	/usr/bin/ICTApplication/ICTCliGateLite --call LoggerModule:deleteTmpLogFiles
	exit 0
fi

if [ $# -eq 1 ]; then
	case $1 in --help | -h)
		echo " __________________________________________________________________ "
		echo "|                  usage of deletelogs                             |"
		echo "|deletelogs              : delete common logs                      |"
		echo "|deletelogs --help | -h  : show this help                          |"
		echo "|deletelogs --flash | -f : delete common log and flash log         |"
		echo "|__________________________________________________________________|"
		exit 0
	esac
	case $1 in --flash | -f)
		/usr/bin/ICTApplication/ICTCliGateLite --call LoggerModule:deleteTmpLogFiles --args flash
		exit 0
	esac
	# at this point, the argument is not recognized.
	echo "Wrong parameter, write 'deletelogs --help' for more informations."
	exit 0
	
fi

# at this point, the number of parameters is 2 or more.
echo "Number of parameters invalid, write 'deletelogs --help' for more informations."


