diff options
author | michelou <michelou@epfl.ch> | 2010-12-02 12:15:12 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2010-12-02 12:15:12 +0000 |
commit | a69c1afd4ba602bd4ccc9f9aced9bfc0f6f3c5e7 (patch) | |
tree | 4bb49b6a5ed11a4c721c311f3c6fc1541166c5f5 /src/compiler/scala/tools/nsc/GenericRunnerCommand.scala | |
parent | 2b689f169e9c2112dd243cac186038eeb952eead (diff) | |
download | scala-a69c1afd4ba602bd4ccc9f9aced9bfc0f6f3c5e7.tar.gz scala-a69c1afd4ba602bd4ccc9f9aced9bfc0f6f3c5e7.tar.bz2 scala-a69c1afd4ba602bd4ccc9f9aced9bfc0f6f3c5e7.zip |
added -jar option to scala interpreter
Diffstat (limited to 'src/compiler/scala/tools/nsc/GenericRunnerCommand.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/GenericRunnerCommand.scala | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala b/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala index c088bb9303..7f32fb3653 100644 --- a/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala +++ b/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala @@ -33,13 +33,19 @@ extends CompilerCommand(args, settings) { case hd :: tl => (Some(hd), tl) } - override def usageMsg = """ -%s [ <option> ]... [<torun> <arguments>] + override def usageMsg =""" +Usage: %s <options> [<torun> <arguments>] + or %s <options> [-jar <jarfile> <arguments>] All options to %s are allowed. See %s -help. <torun>, if present, is an object or script file to run. -If no <torun> is present, run an interactive shell. + +-jar <jarfile>, if present, uses the 'Main-Class' attribute +in the manifest file to determine the object to run. + +If neither <torun> nor -jar <jarfile> are present, run an +interactive shell. Option -howtorun allows explicitly specifying how to run <torun>: script: it is a script file @@ -57,5 +63,5 @@ for future use. Option -nocompdaemon requests that the fsc offline compiler not be used. Option -Dproperty=value sets a Java system property. -""".format(cmdName, compCmdName, compCmdName) +""".format(cmdName, cmdName, compCmdName, compCmdName) } |