JAL-2168 document '-nonews' parameter
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 8 Aug 2016 13:16:44 +0000 (14:16 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 8 Aug 2016 13:16:44 +0000 (14:16 +0100)
help/html/features/clarguments.html
src/jalview/bin/Jalview.java

index 63a14af..1d6f62d 100644 (file)
     </tr>
     <tr>
       <td>
+        <div align="center">-nonews</div>
+      <td>
+        <div align="left">Disable check for <a href="../webServices/newsreader.html">Jalview news</a> on startup (not recommended other than for classroom / demo usage)</div>
+      </td>
+    </tr>
+    <tr>
+      <td>
         <div align="center">-nousagestats</div>
       <td>
         <div align="left">Turn off google analytics usage tracking</div>
index 764c92c..3294c26 100755 (executable)
@@ -328,7 +328,6 @@ public class Jalview
             Cache.log.debug("Starting questionnaire with default url: "
                     + defurl);
             desktop.checkForQuestionnaire(defurl);
-
           }
         }
       }
@@ -336,14 +335,12 @@ public class Jalview
       {
         System.err.println("CMD [-noquestionnaire] executed successfully!");
       }
+
       if (!aparser.contains("nonews"))
       {
         desktop.checkForNews();
       }
-    }
 
-    if (!isHeadlessMode())
-    {
       BioJsHTMLOutput.updateBioJS();
     }
 
@@ -785,6 +782,7 @@ public class Jalview
                     + "-eps FILE\tCreate EPS file FILE from alignment.\n"
                     + "-questionnaire URL\tQueries the given URL for information about any Jalview user questionnaires.\n"
                     + "-noquestionnaire\tTurn off questionnaire check.\n"
+                    + "-nonews\tTurn off check for Jalview news.\n"
                     + "-nousagestats\tTurn off google analytics tracking for this session.\n"
                     + "-sortbytree OR -nosortbytree\tEnable or disable sorting of the given alignment by the given tree\n"
                     // +