Skip to content

Commit

Permalink
Fix infinite recursion in binary compat forwarders (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi authored Sep 4, 2024
1 parent 9c3ce1e commit 77c2e61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mainargs/src/Parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
autoPrintHelpAndExit,
customNames,
customDocs,
sorted = true,
Util.kebabCaseNameMapper
)
}

Expand All @@ -124,6 +126,7 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
autoPrintHelpAndExit,
customNames,
customDocs,
Util.kebabCaseNameMapper
)

def runOrThrow(
Expand Down Expand Up @@ -462,6 +465,7 @@ class ParserForClass[T](val main: MainData[T, Any], val companion: () => Any)
customName,
customDoc,
sorted,
Util.kebabCaseNameMapper
)
def constructEither(
args: Seq[String],
Expand Down

0 comments on commit 77c2e61

Please sign in to comment.