79297485

Date: 2024-12-20 14:17:44
Score: 2
Natty:
Report link

In scala, if you want pass argument using sbt command

syntax :

sbt "runMain MainClass argument"

eg: my main class name is BookApp and I want to pass book name Physics.then,

sbt "runMain BookApp Physics"

if your main class is inside the package eg: org

sbt "runMain org.BookApp Physics"
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Balaji D