-echo "Deploy one of these versions:"
-echo
-echo " (a)dvanced version: includes burst management script and templates for different scenarios. Automatic configuration during start."
-echo " (b)asic version: 4 types of launcher (client, server, balancer, dummy), lightly configured and managed through SIGURS2 method."
-echo " (f)unction test client: special client with regexp scheduler script based on splitted traffic logs."
-echo
-echo "Input option [b]:"
-read option
-[ "$option" = "" ] && option=b
+if [ "$1" = "" ]
+then
+ echo
+ echo "Deploy one of these versions:"
+ echo
+ echo " (a)dvanced version: includes burst management script and templates for different scenarios. Automatic configuration during start."
+ echo " (b)asic version: 4 types of launcher (client, server, balancer, dummy), lightly configured and managed through SIGURS2 method."
+ echo " (f)unction test client: special client with regexp scheduler script based on splitted traffic logs. Requires a server to perform the tests."
+ echo
+ echo "Input option [b]:"
+ read option
+ [ "$option" = "" ] && option=b
+else
+ option=$1
+fi
+