Browse Source

Allow command-line switches of form --sw (as well as -sw).

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6823 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 13 years ago
parent
commit
e4956d786f
  1. 3
      prism/CHANGELOG.txt
  2. 4
      prism/src/prism/PrismCL.java
  3. 4
      prism/src/prism/PrismSettings.java

3
prism/CHANGELOG.txt

@ -2,6 +2,9 @@ This file contains details of the changes in each new version of PRISM.
New since last release:
* Allow command-line switches of form --sw (as well as -sw)
* Parametric model checking
* Fast adaptive uniformisation
* Export labels from GUI
-----------------------------------------------------------------------------

4
prism/src/prism/PrismCL.java

@ -871,7 +871,11 @@ public class PrismCL implements PrismModelListener
// if is a switch...
if (args[i].length() > 0 && args[i].charAt(0) == '-') {
// Remove "-"
sw = args[i].substring(1);
// Remove optional second "-" (i.e. we allow switches of the form --sw too)
if (sw.charAt(0) == '-')
sw = sw.substring(1);
// Note: the order of these switches should match the -help output (just to help keep track of things).
// But: processing of "PRISM" options is done elsewhere in PrismSettings

4
prism/src/prism/PrismSettings.java

@ -787,7 +787,11 @@ public class PrismSettings implements Observer
int j;
double d;
// Remove "-"
sw = args[i].substring(1);
// Remove optional second "-" (i.e. we allow switches of the form --sw too)
if (sw.charAt(0) == '-')
sw = sw.substring(1);
// Note: the order of these switches should match the -help output (just to help keep track of things).

Loading…
Cancel
Save