A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smpirun: gracefuly handle the case where the user forgets to give a program to execute
[simgrid.git]
/
src
/
smpi
/
smpirun.in
diff --git
a/src/smpi/smpirun.in
b/src/smpi/smpirun.in
index
9e5689e
..
28ae8b0
100755
(executable)
--- a/
src/smpi/smpirun.in
+++ b/
src/smpi/smpirun.in
@@
-241,6
+241,13
@@
while true; do
esac
done
+# check if we still have at least one parameter beyond options
+if [ $# -eq 0 ]
+then
+ usage
+ exit
+fi
+
if [ -n "$WRAPPER" ]; then
EXEC="$WRAPPER $1"
else