How do I access command line args from a Scala Play controller? (e.g. sbt “run firstArg secondArg thirdArg”
Normally you would be able to access these by accessing the array ‘args’ from the object that extends ‘App’. However with Play, the controllers are your entry point, not an object extending ‘App’.
I have already tried using ‘with App’ on the play controller and referencing ‘args’, this doesn’t work.