X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96c8fc2a4d7c6bd136d3a3078a6071d971a479aa..278b810c564b6261bb08b57f4c9ee4a1553d74de:/src/smpi/smpirun.in diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 0ee0445efc..a61487afcb 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -131,14 +131,18 @@ shift ##----------------------------------- -# test if we have something to execute, otherwise show usage and exit -if [ -z ${EXEC} ] -then - echo "Program is missing" +# Basic checks on the provided arguments +if [ -z ${EXEC} ] ; then + echo "You must provide a program to execute." usage exit 1 fi +if [ -z ${HOSTFILE} ] ; then + echo "No hostfile specified." + usage + exit 1 +fi ##-------------------------------- DEFAULT or SPECIFIED PLATFORM --------------------------------------