Skip to content
Browse files

Upgraded to work with scala 2.9.x

  • Loading branch information...
1 parent 3315dd3 commit d82d971d82ba597b42e1ad0ee272909e6ab289ed @sellmerfud committed Oct 16, 2011
View
2 Rakefile
@@ -45,7 +45,7 @@ CLOBBER.include(JAR_FILE, DOC_DIR)
directory CLASSES_DIR
-COMPILE_ARGS = "-sourcepath #{SCALA_SRC_DIR} -d #{CLASSES_DIR} #{SCALA_FILES}"
+COMPILE_ARGS = "-deprecation -sourcepath #{SCALA_SRC_DIR} -d #{CLASSES_DIR} #{SCALA_FILES}"
desc "Compile scala source files (param can be -reset or -shutdown)."
task :fsc, [:param] => CLASSES_DIR do |t, args|
View
BIN lib/scalatest-1.2.jar
Binary file not shown.
View
BIN lib/scalatest-1.6.1.jar
Binary file not shown.
View
8 src/main/scala/org/fud/optparse/OptionParser.scala
@@ -186,7 +186,7 @@ import collection.mutable.ListBuffer
* -h, --help Show this message
* }}}
* Where did the `-h, --help` entry come from? By default the `-h` switch is added automatically.
- * The function associated with it will print the help text to `stdout` and call `exit(0)`.
+ * The function associated with it will print the help text to `stdout` and call `sys.exit(0)`.
* You can define your own help switch by simply defining a switch with either or both of the
* names `-h`, `--help`. You can also turn off the auto help altogether.
*
@@ -288,7 +288,7 @@ import collection.mutable.ListBuffer
* { v: Option[String] => options += 'base -> v.getOrElse("HEAD") }
* }.parse(args)
* }
- * catch { case e: OptionParserException => println(e.getMessage); exit(1) }
+ * catch { case e: OptionParserException => println(e.getMessage); sys.exit(1) }
*
* println("Options: " + options)
* println("Libraries: " + libs.reverse)
@@ -326,7 +326,7 @@ class OptionParser {
/** Set this to `false` to avoid the automatically added help switch.
*
* The action for the added help switch is to print the help text to `stdout` and then
- * call `exit(0)`.
+ * call `sys.exit(0)`.
*
* You can also override the default help switch by adding your own switch with a
* short name of "-h" or a long name of "--help". */
@@ -347,7 +347,7 @@ class OptionParser {
protected def add_auto_help: Unit = {
if (auto_help && !switches.exists(s => s.names.short == "h" || s.names.long == "--help"))
- this.flag("-h", "--help", "Show this message") { () => println(this); exit(0) }
+ this.flag("-h", "--help", "Show this message") { () => println(this); sys.exit(0) }
}
/** Set the banner that is displayed as the first line of the help text. */

0 comments on commit d82d971

Please sign in to comment.
Something went wrong with that request. Please try again.