[mpich2-commits] r5589 - mpich2/trunk/src/pm/hydra/ui/mpiexec
balaji at mcs.anl.gov
balaji at mcs.anl.gov
Tue Oct 27 18:10:56 CDT 2009
Author: balaji
Date: 2009-10-27 18:10:55 -0500 (Tue, 27 Oct 2009)
New Revision: 5589
Modified:
mpich2/trunk/src/pm/hydra/ui/mpiexec/utils.c
Log:
mpiexec -help is a valid command; show the usage, but don't report an
error.
Modified: mpich2/trunk/src/pm/hydra/ui/mpiexec/utils.c
===================================================================
--- mpich2/trunk/src/pm/hydra/ui/mpiexec/utils.c 2009-10-27 23:10:54 UTC (rev 5588)
+++ mpich2/trunk/src/pm/hydra/ui/mpiexec/utils.c 2009-10-27 23:10:55 UTC (rev 5589)
@@ -1228,6 +1228,10 @@
do {
/* Get the mpiexec arguments */
while (*argv && **argv == '-') {
+ if (IS_HELP(*argv)) {
+ HYDU_ERR_SETANDJUMP(status, HYD_INTERNAL_ERROR, "");
+ }
+
status = match_arg(&argv);
HYDU_ERR_POP(status, "argument matching returned error\n");
}
More information about the mpich2-commits
mailing list