mirror of https://github.com/sbt/sbt.git
Fix help command for shells (#7358)
* sbt-help-fix * fix BasicCommands.scala formatting
This commit is contained in:
parent
cdaae3bfde
commit
7c400081a1
|
|
@ -129,8 +129,8 @@ object BasicCommands {
|
|||
def runHelp(s: State, h: Help)(arg: Option[String]): State = {
|
||||
|
||||
val (extraArgs, remainingCommands) = s.remainingCommands match {
|
||||
case xs :+ exec if exec.commandLine == "shell" => (xs, exec :: Nil)
|
||||
case xs => (xs, nil[Exec])
|
||||
case xs :+ exec if exec.commandLine.endsWith(Shell) => (xs, exec :: Nil)
|
||||
case xs => (xs, nil[Exec])
|
||||
}
|
||||
|
||||
val topic = (arg.toList ++ extraArgs.map(_.commandLine)) match {
|
||||
|
|
|
|||
Loading…
Reference in New Issue