Created
July 18, 2012 04:46
-
-
Save nicerobot/3134234 to your computer and use it in GitHub Desktop.
There has to be a simpler solution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.collection.JavaConversions.propertiesAsScalaMapimport | |
(scala.collection.SortedMap[String,String]() ++ System.getProperties()) map(s=>printf("%%%ds | %%s\n".format(System.getProperties().toMap.keySet.foldLeft(0)((i,s) => i max s.length)),s._1,s._2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment