diff --git a/main/src/main/scala/sbt/CommandStrings.scala b/main/src/main/scala/sbt/CommandStrings.scala index 50858bdee..e67697184 100644 --- a/main/src/main/scala/sbt/CommandStrings.scala +++ b/main/src/main/scala/sbt/CommandStrings.scala @@ -95,39 +95,36 @@ $ShowCommand val InspectCommand = "inspect" val inspectBrief = (InspectCommand + " [uses|tree|definitions] ", "Prints the value for 'key', the defining scope, delegates, related definitions, and dependencies.") - val inspectDetailed = - InspectCommand + """ - - For a plain setting, the value bound to the key argument is displayed using its toString method. - Otherwise, the type of task ("Task" or "Input task") is displayed. - - "Dependencies" shows the settings that this setting depends on. - - "Reverse dependencies" shows the settings that depend on this setting. - - When a key is resolved to a value, it may not actually be defined in the requested scope. - In this case, there is a defined search sequence. - "Delegates" shows the scopes that are searched for the key. - "Provided by" shows the scope that contained the value returned for the key. - - "Related" shows all of the scopes in which the key is defined. - -""" + - InspectCommand + """ tree - - Displays `key` and its dependencies in a tree structure. - For settings, the value bound to the setting is displayed and for tasks, the type of the task is shown. - -""" + - InspectCommand + """ uses - - Displays the settings and tasks that directly depend on `key`. - -""" + - InspectCommand + """ definitions - - Displays the scopes in which `key` is defined. -""" + val inspectDetailed = s""" + |$InspectCommand + | + | For a plain setting, the value bound to the key argument is displayed using its toString method. + | Otherwise, the type of task ("Task" or "Input task") is displayed. + | + | "Dependencies" shows the settings that this setting depends on. + | + | "Reverse dependencies" shows the settings that depend on this setting. + | + | When a key is resolved to a value, it may not actually be defined in the requested scope. + | In this case, there is a defined search sequence. + | "Delegates" shows the scopes that are searched for the key. + | "Provided by" shows the scope that contained the value returned for the key. + | + | "Related" shows all of the scopes in which the key is defined. + | + |$InspectCommand tree + | + | Displays `key` and its dependencies in a tree structure. + | For settings, the value bound to the setting is displayed and for tasks, the type of the task is shown. + | + |$InspectCommand uses + | + | Displays the settings and tasks that directly depend on `key`. + | + |$InspectCommand definitions + | + | Displays the scopes in which `key` is defined. + """.stripMargin.trim val SetCommand = "set" val setBrief = (s"$SetCommand [every] ", "Evaluates a Setting and applies it to the current project.")