diff --git a/main-command/src/main/scala/sbt/BasicCommandStrings.scala b/main-command/src/main/scala/sbt/BasicCommandStrings.scala index 7ec8c794c..cd760a313 100644 --- a/main-command/src/main/scala/sbt/BasicCommandStrings.scala +++ b/main-command/src/main/scala/sbt/BasicCommandStrings.scala @@ -11,21 +11,21 @@ import sbt.util.Level import sbt.internal.util.complete.HistoryCommands object BasicCommandStrings { - val HelpCommand = "help" - val CompletionsCommand = "completions" - val Exit = "exit" - val Quit = "quit" - val TemplateCommand = "new" + val HelpCommand: String = "help" + val CompletionsCommand: String = "completions" + val Exit: String = "exit" + val Quit: String = "quit" + val TemplateCommand: String = "new" /** The command name to terminate the program.*/ val TerminateAction: String = Exit - def helpBrief = + def helpBrief: (String, String) = ( HelpCommand, s"Displays this help message or prints detailed help on requested commands (run '$HelpCommand ')." ) - def helpDetailed = s"""$HelpCommand + def helpDetailed: String = s"""$HelpCommand Prints a help summary. @@ -38,12 +38,12 @@ $HelpCommand Searches the help according to the provided regular expression. """ - def CompletionsDetailed = + def CompletionsDetailed: String = "Displays a list of completions for the given argument string (run 'completions ')." - def CompletionsBrief = (CompletionsCommand, CompletionsDetailed) + def CompletionsBrief: (String, String) = (CompletionsCommand, CompletionsDetailed) - def templateBrief = (TemplateCommand, "Creates a new sbt build.") - def templateDetailed = + def templateBrief: (String, String) = (TemplateCommand, "Creates a new sbt build.") + def templateDetailed: String = TemplateCommand + """ [--options]