Skip to content

Commit

Permalink
copy fix from #218 (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slakah authored Jun 25, 2020
1 parent 6cf9bad commit 16768ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cats/shared/src/main/scala/caseapp/cats/IOCaseApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ abstract class IOCaseApp[T](implicit val parser0: Parser[T], val messages: Help[
Formatter.DefaultNameFormatter

override def run(args: List[String]): IO[ExitCode] =
parser.withHelp.detailedParse(args) match {
parser.withHelp.detailedParse(expandArgs(args), stopAtFirstUnrecognized) match {
case Left(err) => error(err)
case Right((WithHelp(true, _, _), _)) => usageAsked
case Right((WithHelp(_, true, _), _)) => helpAsked
case Right((WithHelp(true, _, _), _)) => usageAsked
case Right((WithHelp(_, _, Left(err)), _)) => error(err)
case Right((WithHelp(_, _, Right(t)), remainingArgs)) => run(t, remainingArgs)
}
Expand Down

0 comments on commit 16768ae

Please sign in to comment.