summaryrefslogblamecommitdiff
path: root/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
blob: 65fdb82bd242b8bbc62d9f373bf2048b648b77d6 (plain) (tree)
1
2
3
4
5
6
7
8
9
                            
                                


                     
 
                       
 
                                                  
                         






                                                                

                  
                  


                                        
 

                       


                                                              


                  



                                 
 

                    

                                                                
 

                    

                                              
 
/* NSC -- new Scala compiler
 * Copyright 2006-2010 LAMP/EPFL
 * @author  Lex Spoon
 */


package scala.tools.nsc

class GenericRunnerSettings(error: String => Unit)
extends Settings(error) {
  val jarfile =
    StringSetting(
      "-jar",
      "jar",
      "Specify the jarfile in which to look for the main class",
      "")

  val howtorun =
    ChoiceSetting(
      "-howtorun",
      "how to run the specified code",
      List("guess", "object", "script"),
      "guess")

  val loadfiles =
    MultiStringSetting(
      "-i",
      "file",
      "load a file (assumes the code is given interactively)")

  val execute =
    StringSetting(
      "-e",
      "string",
      "execute a single command",
      "")

  val savecompiled =
    BooleanSetting(
      "-savecompiled",
      "save the compiled script (assumes the code is a script)")

  val nocompdaemon =
    BooleanSetting(
      "-nocompdaemon",
      "do not use the fsc compilation daemon")
}