Allow for -open arg
authoramwaterhouse <Andrew Waterhouse>
Thu, 21 Apr 2005 17:21:20 +0000 (17:21 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 21 Apr 2005 17:21:20 +0000 (17:21 +0000)
src/jalview/bin/Jalview.java

index f7a2dcd..6f4a8d5 100755 (executable)
@@ -99,9 +99,15 @@ public class Jalview extends JApplet
      frame.setVisible(true);\r
 \r
 \r
+\r
      if(args!=null && args.length>0)\r
      {\r
-         String file = args[0];\r
+         String file=null;\r
+         if(args[0].equals("-open"))\r
+           file = args[1];\r
+         else\r
+           file = args[0];\r
+\r
          String protocol = "File";\r
          if(file.indexOf("http:")>-1)\r
            protocol = "URL";\r