diff options
author | michelou <michelou@epfl.ch> | 2003-10-20 17:43:28 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2003-10-20 17:43:28 +0000 |
commit | 724ebb9791ec0578f37ae8612b628d845365c74d (patch) | |
tree | 6bff2ee8afae352939ea2ec5ad8e7ae3898ce415 /sources | |
parent | 907dd4a4c72349c50d141cf620075f9af5cda1e7 (diff) | |
download | scala-724ebb9791ec0578f37ae8612b628d845365c74d.tar.gz scala-724ebb9791ec0578f37ae8612b628d845365c74d.tar.bz2 scala-724ebb9791ec0578f37ae8612b628d845365c74d.zip |
- added non-standard option '-Xshortname' for t...
- added non-standard option '-Xshortname' for the reporter
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/CompilerCommand.java | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/sources/scalac/CompilerCommand.java b/sources/scalac/CompilerCommand.java index aedf5827ab..906dddebf9 100644 --- a/sources/scalac/CompilerCommand.java +++ b/sources/scalac/CompilerCommand.java @@ -30,7 +30,7 @@ import scalac.util.ScalaFileArgumentParser; import scalac.util.UnknownArgumentParser; import scalac.util.Strings; -/* +/** * Class <code>CompilerCommand</code> describes the options * passed as arguments to the compiler command. */ @@ -72,9 +72,16 @@ public class CompilerCommand extends CommandParser { public final ScalaFileArgumentParser files; public final UnknownArgumentParser unknown_arguments; + /* + * Non-standard options (starting with prefix "-X") + * are subject to change without notice. + */ + public final BooleanOptionParser Xshortname; + //######################################################################## // Public Constructors - /* + + /** * Creates an instance variable. * * @param product @@ -198,11 +205,15 @@ public class CompilerCommand extends CommandParser { this.version = new VersionOptionParser(this, "version", "Print product version and exit", - product() + " " + version() + " -- (c) 2002 LAMP/EPFL"), + product() + " " + version() + " -- (c) 2002-03 LAMP/EPFL"), this.help = new HelpOptionParser(this, "help", "Print a synopsis of standard options"), + this.Xshortname = new BooleanOptionParser(this, + "Xshortname", "Display short file names in error reports", + false), + this.unknown_options = new UnknownOptionParser(this), this.files = new ScalaFileArgumentParser(this), @@ -217,7 +228,7 @@ public class CompilerCommand extends CommandParser { //######################################################################## // Public Methods - /* + /** * .. * * @param args @@ -227,6 +238,7 @@ public class CompilerCommand extends CommandParser { reporter().nowarn = nowarn.value; reporter().verbose = verbose.value; reporter().prompt = prompt.value; + reporter().shortname = Xshortname.value; return result; } @@ -238,7 +250,7 @@ public class CompilerCommand extends CommandParser { return false; } - /* + /** * Returns the help message for this compiler command. * * @return a formatted string containing the help message. @@ -261,7 +273,7 @@ public class CompilerCommand extends CommandParser { return buffer.toString(); } - /* + /** * Returns the class path for this compiler command. * * @return the class path. @@ -271,7 +283,7 @@ public class CompilerCommand extends CommandParser { bootclasspath.value, extdirs.value); } - /* + /** * Returns the output path for this compiler command. * * @return the output path terminated by . |