title: How does the mainClass setting work in sbt?
body: <p>I can't seem to find any details of how the <code>mainClass</code> option works in the build configuration of sbt. You specify the name of a class to use when you invoke the <code>run</code> action, but what does it actually do with it? Does it call a method on the class?</p>