Fix help command for shells (#7358)

* sbt-help-fix
* fix BasicCommands.scala formatting
This commit is contained in:
azdrojowa123 2023-08-25 18:01:49 +02:00 committed by GitHub
parent cdaae3bfde
commit 7c400081a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {