-
it has no documentation and i cannot figure out what is this option useful for. //> using dep com.lihaoyi::mainargs::0.7.6
package foo
import mainargs.*
object Main:
@main def run(
@arg(noDefaultName = true)
foo: String
) = println(s"foo is $foo")
def main(args: Array[String]): Unit =
ParserForMethods(this).runOrExit(args.toSeq) $ scala foo.scala -- asdfasdf
Missing argument: <str>
Unknown argument: "asdfasdf"
Expected Signature: run
<str> |
Beta Was this translation helpful? Give feedback.
Answered by
lihaoyi
Mar 7, 2025
Replies: 1 comment 1 reply
-
IIRC it was meant to make |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
scarf005
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IIRC it was meant to make
fooBar
only callable via the mangled name--foo-bar
, and not by the original name--fooBar