help()
{
printf "itt a súgó"
}
if [ "$#" -eq "0" ]; then
help
exit
fi
while [ "$#" -gt "0" ]; then
case "${1}" in
--a) blabla; shift;;
--b) blabla; shift;;
--c) blabla; shift;;
--h|--help)
help
*) printf "Ismeretlen kapcsoló ${1}\nSúgó: command --h(elp)\n"
exit ;;
esac
done