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 440b7bb2a6ed1dd823a2a0d150758ad684e19261..6d11bbc26d169fe7c7e68a56ce9131f816060aec 100644 |
--- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java |
+++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java |
@@ -35,6 +35,10 @@ public class CommandLineOptions { |
@Option(name = "--error_format", |
usage = "Format errors as normal or machine") |
private String errorFormat = ""; |
+ |
+ @Option(name = "--extended-exit-code", |
+ usage = "0 - clean; 1 - has warnings; 2 - has errors") |
+ private boolean extendedExitCode = false; |
@Option(name = "--enable_type_checks", |
usage = "Generate runtime type checks") |
@@ -149,6 +153,10 @@ public class CommandLineOptions { |
public File getDartSdkPath() { |
return dartSdkPath; |
} |
+ |
+ public boolean extendedExitCode() { |
+ return extendedExitCode; |
+ } |
/** |
* Returns whether warnings from SDK files should be suppressed. |