Commit 6118da06 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Improve usage() statements since there is no actual documentation for

these scripts!
parent b4fc882b
......@@ -33,7 +33,7 @@ sub usage()
"Usage: batchexp [-i [-w]] [-f] [-E description] [-g gid]\n".
" [-S reason] [-L reason] [-a <time>] [-l <time>]\n".
" -p <pid> -e <eid> <nsfile>\n".
"switches:\n".
"switches and arguments:\n".
"-i - swapin immediately; by default experiment is batched\n".
"-w - wait for non-batchmode experiment to preload or swapin\n".
"-f - preload experiment (do not swapin or queue yet)\n".
......
......@@ -22,7 +22,12 @@ use Getopt::Std;
#
sub usage()
{
print STDOUT "Usage: endexp [-b | -w] <pid> <eid>\n";
print(STDERR
"Usage: endexp [-b | -w] <pid> <eid>\n".
"switches and arguments:\n".
"-w - wait for non-batchmode experiment terminate\n".
"<pid> - The project the experiment belongs to\n".
"<eid> - The experiment name (id)\n");
exit(-1);
}
my $optlist = "bw";
......
......@@ -17,8 +17,18 @@ use POSIX qw(setsid);
sub usage()
{
print STDOUT "Usage: swapexp [-b | -w] [-i | -a | -f] [-r] [-e] ".
"<-s in | out | restart | modify | pause> <pid> <eid> [<nsfile>]\n";
print(STDERR
"Usage: swapexp [-b | -w] [-i | -a | -f] [-r] [-e]\n".
" <-s in | out | restart | modify | pause>\n".
" <pid> <eid> [<nsfile>]\n".
"switches and arguments:\n".
"-w - wait for non-batchmode experiment swap/modify\n".
"-r - reboot nodes when doing a modify experiment\n".
"-e - restart event scheduler when doing a modify experiment\n".
"-s <op> - Operation to perform; one of those listed above\n".
"<pid> - The project the experiment belongs to\n".
"<eid> - The experiment name (id)\n".
"<nsfile> - Optional NS file to parse for experiment modify\n");
exit(-1);
}
my $optlist = "biafres:w";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment