Skip to content

Commit fa07c10

Browse files
committed
fix: make sure runEither isn't calling itself
It looks like this was overlooked and the overloaded `runEither` is just constantly calling itself resulting in a stack overflow. This changes it to call the newly created `runEither` with the `nameMapper` which I believe is the intended flow. fixes #106
1 parent d2dd9bf commit fa07c10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mainargs/src/Parser.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
213213
autoPrintHelpAndExit,
214214
customNames,
215215
customDocs,
216-
sorted
216+
sorted,
217+
Util.kebabCaseNameMapper
217218
)
218219
@deprecated("Binary Compatibility Shim", "mainargs 0.6.0")
219220
def runRaw(

0 commit comments

Comments
 (0)