Browse Source

Change -exportresults to use notation <file[:<options>] not <file[,<options>]> by default.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6838 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 13 years ago
parent
commit
18b4d0daa3
  1. 20
      prism/src/prism/PrismCL.java

20
prism/src/prism/PrismCL.java

@ -1073,10 +1073,20 @@ public class PrismCL implements PrismModelListener
exportresults = true; exportresults = true;
// Parse filename/options // Parse filename/options
s = args[++i]; s = args[++i];
String ss[] = s.split(",");
exportResultsFilename = ss[0];
for (j = 1; j < ss.length; j++) {
if (ss[j].equals("csv"))
// Assume use of : to split filename/options but check for , if : not found
// (this was the old notation)
String halves[] = splitFilesAndOptions(s);
if (halves[1].length() == 0 && halves[0].indexOf(',') > -1) {
int comma = halves[0].indexOf(',');
halves[1] = halves[0].substring(comma + 1);
halves[0] = halves[0].substring(0, comma);
}
exportResultsFilename = halves[0];
String ss[] = halves[1].split(",");
for (j = 0; j < ss.length; j++) {
if (ss[j].equals("")) {
}
else if (ss[j].equals("csv"))
exportresultscsv = true; exportresultscsv = true;
else if (ss[j].equals("matrix")) else if (ss[j].equals("matrix"))
exportresultsmatrix = true; exportresultsmatrix = true;
@ -2000,7 +2010,7 @@ public class PrismCL implements PrismModelListener
mainLog.println("-mdp ........................... Force imported/built model to be an MDP"); mainLog.println("-mdp ........................... Force imported/built model to be an MDP");
mainLog.println(); mainLog.println();
mainLog.println("EXPORT OPTIONS:"); mainLog.println("EXPORT OPTIONS:");
mainLog.println("-exportresults <file[,options]> Export the results of model checking to a file");
mainLog.println("-exportresults <file[:options]> Export the results of model checking to a file");
mainLog.println("-exportmodel <files[:options]> . Export the built model to file(s)"); mainLog.println("-exportmodel <files[:options]> . Export the built model to file(s)");
mainLog.println("-exporttrans <file> ............ Export the transition matrix to a file"); mainLog.println("-exporttrans <file> ............ Export the transition matrix to a file");
mainLog.println("-exportstaterewards <file> ..... Export the state rewards vector to a file"); mainLog.println("-exportstaterewards <file> ..... Export the state rewards vector to a file");

Loading…
Cancel
Save