JAL-629 labelled breaks are frowned upon by everyone
[jalview.git] / src / jalview / bin / ArgParser.java
index 4cdfd19..4d37847 100644 (file)
@@ -454,7 +454,7 @@ public class ArgParser
 
     // new style
     Enumeration<String> argE = Collections.enumeration(Arrays.asList(args));
-    ARG: while (argE.hasMoreElements())
+    while (argE.hasMoreElements())
     {
       String arg = argE.nextElement();
       String argName = null;
@@ -497,14 +497,14 @@ public class ArgParser
         {
           // arg not found
           Console.error("Argument '" + arg + "' not recognised. Ignoring.");
-          continue ARG;
+          continue;
         }
         if (!a.hasOption(Opt.BOOLEAN) && negated)
         {
           // used "no" with a non-boolean option
           Console.error("Argument '--" + NEGATESTRING + argName
                   + "' not a boolean option. Ignoring.");
-          continue ARG;
+          continue;
         }
         if (!a.hasOption(Opt.STRING) && equalPos > -1)
         {
@@ -512,7 +512,7 @@ public class ArgParser
           Console.error("Argument '--" + argName
                   + "' does not expect a value (given as '" + arg
                   + "').  Ignoring.");
-          continue ARG;
+          continue;
         }
         if (!a.hasOption(Opt.LINKED) && linkedId != null)
         {
@@ -520,7 +520,7 @@ public class ArgParser
           Console.error("Argument '--" + argName
                   + "' does not expect a linked id (given as '" + arg
                   + "'). Ignoring.");
-          continue ARG;
+          continue;
         }
 
         if (a.hasOption(Opt.STRING) && equalPos == -1)
@@ -531,7 +531,7 @@ public class ArgParser
             // no value to take for arg, which wants a value
             Console.error("Argument '" + a.getName()
                     + "' requires a value, none given. Ignoring.");
-            continue ARG;
+            continue;
           }
           val = argE.nextElement();
         }