| Index: compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| diff --git a/compiler/java/com/google/dart/compiler/CommandLineOptions.java b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| index d73a438e8eb33404fe39deeaeb6c42f6f8de53c2..68a574dc94d9511738b93efc0969e11bcc7c1870 100644
|
| --- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| +++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| @@ -118,6 +118,10 @@ public class CommandLineOptions {
|
| usage = "For debugging, continue on with resolution even if there are parse errors.")
|
| private boolean resolveDespiteParseErrors;
|
|
|
| + @Option(name = "--version",
|
| + usage = "Show analyzer version")
|
| + private boolean showVersion = false;
|
| +
|
| @Argument
|
| private final List<String> sourceFiles = new ArrayList<String>();
|
|
|
| @@ -212,6 +216,10 @@ public class CommandLineOptions {
|
| return showMetrics;
|
| }
|
|
|
| + public boolean showVersion() {
|
| + return showVersion;
|
| + }
|
| +
|
| /**
|
| * if <code>true</code>, run the AST back through the DartSourceVisitor to create source
|
| * from the parsed AST and print to stdout.
|
|
|