only list history help (!) in brief help listing

This commit is contained in:
Mark Harrah 2012-04-07 18:10:23 -04:00
parent c358a8a5b0
commit 585a62bf5e
3 changed files with 4 additions and 3 deletions

View File

@ -150,7 +150,7 @@ object Keys
val consoleProject = TaskKey[Unit]("console-project", "Starts the Scala interpreter with the sbt and the build definition on the classpath and useful imports.", AMinusTask)
val compile = TaskKey[Analysis]("compile", "Compiles sources.", APlusTask)
val compilers = TaskKey[Compiler.Compilers]("compilers", "Defines the Scala and Java compilers to use for compilation.", DTask)
val compileIncSetup = TaskKey[Compiler.IncSetup]("inc-compile-setup", "Configurations aspects of incremental compilation.", DTask)
val compileIncSetup = TaskKey[Compiler.IncSetup]("inc-compile-setup", "Configures aspects of incremental compilation.", DTask)
val definesClass = TaskKey[DefinesClass]("defines-class", "Internal use: provides a function that determines whether the provided file contains a given class.", Invisible)
val doc = TaskKey[File]("doc", "Generates API documentation.", AMinusTask)
val copyResources = TaskKey[Seq[(File,File)]]("copy-resources", "Copies resources to the output directory.", AMinusTask)

View File

@ -32,7 +32,8 @@ object BasicCommandStrings
Searches the help according to the provided regular expression.
"""
def historyHelp = Help.briefDetail(HistoryCommands.descriptions)
def HistoryHelpBrief = (HistoryCommands.Start -> "History command help. Lists and describes all history commands.")
def historyHelp = Help(HistoryHelpBrief, (HistoryHelpBrief +: HistoryCommands.descriptions).toMap)
def exitBrief = "Terminates the build."

View File

@ -62,7 +62,7 @@ object CommandUtil
}
}
def layoutDetails(details: Map[String,String]): String =
details.map { case (k,v) => k + ":\n\n " + v } mkString("\n", "\n\n", "\n")
details.map { case (k,v) => k + "\n\n " + v } mkString("\n", "\n\n", "\n")
final val HelpPatternFlags = Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE