Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: compiler/java/com/google/dart/compiler/CommandLineOptions.java

Issue 10825112: Issue 4262. Support for --version in dart_analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698