Skip to content

Commit

Permalink
Fix help command for shells (#7358)
Browse files Browse the repository at this point in the history
* sbt-help-fix
* fix BasicCommands.scala formatting
  • Loading branch information
azdrojowa123 committed Aug 25, 2023
1 parent cdaae3b commit 7c40008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main-command/src/main/scala/sbt/BasicCommands.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7c40008

Please sign in to comment.