@@ -13,7 +13,8 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
1313 docsOnNewLine : Boolean ,
1414 customNames : Map [String , String ],
1515 customDocs : Map [String , String ],
16- sorted : Boolean ): String = {
16+ sorted : Boolean
17+ ): String = {
1718 helpText(totalWidth, docsOnNewLine, customNames, customDocs, sorted, Util .kebabCaseNameMapper)
1819 }
1920
@@ -83,7 +84,7 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
8384 docsOnNewLine : Boolean ,
8485 autoPrintHelpAndExit : Option [(Int , PrintStream )],
8586 customNames : Map [String , String ],
86- customDocs : Map [String , String ],
87+ customDocs : Map [String , String ]
8788 ): Any = runOrThrow(
8889 args,
8990 allowPositional,
@@ -93,7 +94,7 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
9394 docsOnNewLine,
9495 autoPrintHelpAndExit,
9596 customNames,
96- customDocs,
97+ customDocs
9798 )
9899
99100 def runOrThrow (
@@ -140,7 +141,14 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
140141 ): Either [String , Any ] = {
141142 if (autoPrintHelpAndExit.nonEmpty && args.take(1 ) == Seq (" --help" )) {
142143 val (exitCode, outputStream) = autoPrintHelpAndExit.get
143- outputStream.println(helpText(totalWidth, docsOnNewLine, customNames, customDocs, sorted, nameMapper))
144+ outputStream.println(helpText(
145+ totalWidth,
146+ docsOnNewLine,
147+ customNames,
148+ customDocs,
149+ sorted,
150+ nameMapper
151+ ))
144152 Compat .exit(exitCode)
145153 } else runRaw0(args, allowPositional, allowRepeats, nameMapper) match {
146154 case Left (err) => Left (Renderer .renderEarlyError(err))
@@ -189,21 +197,19 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
189197 sorted = false
190198 )
191199
192-
193-
194200 @ deprecated(" Binary Compatibility Shim" , " mainargs 0.6.0" )
195201 def runEither (
196- args : Seq [String ],
197- allowPositional : Boolean ,
198- allowRepeats : Boolean ,
199- totalWidth : Int ,
200- printHelpOnExit : Boolean ,
201- docsOnNewLine : Boolean ,
202- autoPrintHelpAndExit : Option [(Int , PrintStream )],
203- customNames : Map [String , String ],
204- customDocs : Map [String , String ],
205- sorted : Boolean
206- ): Either [String , Any ] = runEither(
202+ args : Seq [String ],
203+ allowPositional : Boolean ,
204+ allowRepeats : Boolean ,
205+ totalWidth : Int ,
206+ printHelpOnExit : Boolean ,
207+ docsOnNewLine : Boolean ,
208+ autoPrintHelpAndExit : Option [(Int , PrintStream )],
209+ customNames : Map [String , String ],
210+ customDocs : Map [String , String ],
211+ sorted : Boolean
212+ ): Either [String , Any ] = runEither(
207213 args,
208214 allowPositional,
209215 allowRepeats,
@@ -220,9 +226,12 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
220226 def runRaw (
221227 args : Seq [String ],
222228 allowPositional : Boolean ,
223- allowRepeats : Boolean ,
229+ allowRepeats : Boolean
224230 ): Result [Any ] = runRaw(
225- args, allowPositional, allowRepeats, Util .kebabCaseNameMapper
231+ args,
232+ allowPositional,
233+ allowRepeats,
234+ Util .kebabCaseNameMapper
226235 )
227236 def runRaw (
228237 args : Seq [String ],
@@ -240,7 +249,7 @@ class ParserForMethods[B](val mains: MethodMains[B]) {
240249 def runRaw0 (
241250 args : Seq [String ],
242251 allowPositional : Boolean ,
243- allowRepeats : Boolean ,
252+ allowRepeats : Boolean
244253 ): Either [Result .Failure .Early , (MainData [_, B ], Result [Any ])] = runRaw0(
245254 args,
246255 allowPositional,
@@ -270,7 +279,9 @@ class ParserForClass[T](val main: MainData[T, Any], val companion: () => Any)
270279 docsOnNewLine : Boolean ,
271280 customName : String ,
272281 customDoc : String ,
273- sorted : Boolean ): String = helpText(totalWidth, docsOnNewLine, customName, customDoc, sorted, Util .kebabCaseNameMapper)
282+ sorted : Boolean
283+ ): String =
284+ helpText(totalWidth, docsOnNewLine, customName, customDoc, sorted, Util .kebabCaseNameMapper)
274285
275286 def helpText (
276287 totalWidth : Int = 100 ,
@@ -312,7 +323,8 @@ class ParserForClass[T](val main: MainData[T, Any], val companion: () => Any)
312323 docsOnNewLine : Boolean ,
313324 autoPrintHelpAndExit : Option [(Int , PrintStream )],
314325 customName : String ,
315- customDoc : String ): T = constructOrExit(
326+ customDoc : String
327+ ): T = constructOrExit(
316328 args,
317329 allowPositional,
318330 allowRepeats,
@@ -367,7 +379,7 @@ class ParserForClass[T](val main: MainData[T, Any], val companion: () => Any)
367379 docsOnNewLine : Boolean ,
368380 autoPrintHelpAndExit : Option [(Int , PrintStream )],
369381 customName : String ,
370- customDoc : String ,
382+ customDoc : String
371383 ): T = constructOrThrow(
372384 args,
373385 allowPositional,
@@ -420,7 +432,7 @@ class ParserForClass[T](val main: MainData[T, Any], val companion: () => Any)
420432 autoPrintHelpAndExit : Option [(Int , PrintStream )],
421433 customName : String ,
422434 customDoc : String ,
423- sorted : Boolean ,
435+ sorted : Boolean
424436 ): Either [String , T ] = constructEither(
425437 args,
426438 allowPositional,
@@ -431,7 +443,7 @@ class ParserForClass[T](val main: MainData[T, Any], val companion: () => Any)
431443 autoPrintHelpAndExit,
432444 customName,
433445 customDoc,
434- sorted,
446+ sorted
435447 )
436448 def constructEither (
437449 args : Seq [String ],
@@ -498,7 +510,7 @@ class ParserForClass[T](val main: MainData[T, Any], val companion: () => Any)
498510 def constructRaw (
499511 args : Seq [String ],
500512 allowPositional : Boolean ,
501- allowRepeats : Boolean ,
513+ allowRepeats : Boolean
502514 ): Result [T ] = constructRaw(
503515 args,
504516 allowPositional,
0 commit comments