« Return to Thread: Patch for CommandLineParser

Patch for CommandLineParser

by Kahli Burke :: Rate this Message:

Reply to Author | View in Thread

Just a simple fix for a formatting problem:

# HG changeset patch
# User Kahli Burke
# Date 1237584401 25200
# Node ID 1d2f3c2c0808854dfc966911a224ad16fbf57b44
# Parent  b747054ff730ec396bbb8924a34ed0cf8a021776
Fix formatting of short names when displaying usage

diff --git a/src/scalax/io/commandline.scala b/src/scalax/io/
commandline.scala
--- a/src/scalax/io/commandline.scala
+++ b/src/scalax/io/commandline.scala
@@ -319,8 +319,6 @@
  case Some(sn) => out.print("  -"+sn)
  case None => out.print("    ")
  }
- out.print("  -")
- out.print(i.shortName)
  out.print("  --")
  out.print(i.longName)
  for(j <- Iterator.range(0, width - i.longName.length))



smime.p7s (3K) Download Attachment

 « Return to Thread: Patch for CommandLineParser