JAL-629 More consistent printing of --arguments. Example nf-core argfile
[jalview.git] / src / jalview / bin / argparser / Arg.java
index 8207996..7eaac09 100644 (file)
@@ -26,7 +26,7 @@ public enum Arg
   {
     HELP.setOptions(Opt.UNARY);
     CALCULATION.setOptions(true, Opt.BOOLEAN); // default "true" implies only
-                                               // expecting "--nocalculation"
+    // expecting "--nocalculation"
     MENUBAR.setOptions(true, Opt.BOOLEAN);
     STATUS.setOptions(true, Opt.BOOLEAN);
     SHOWOVERVIEW.setOptions(Opt.UNARY, Opt.LINKED);
@@ -119,6 +119,12 @@ public enum Arg
       System.arraycopy(names, 0, this.argNames, 1, names.length);
   }
 
+  public String argString()
+  {
+    return new StringBuilder(ArgParser.DOUBLEDASH).append(getName())
+            .toString();
+  }
+
   public String toLongString()
   {
     StringBuilder sb = new StringBuilder();