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

Unified Diff: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java

Issue 14786020: Update status files for 'dartanalyer'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added missing status files. Created 7 years, 7 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: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java
diff --git a/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java b/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java
index 7e5335fcbc9f31e9f23c3913792bbb41d531eaaa..9c9fa6c972822a83108bd4813876c80a7775a766 100644
--- a/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java
+++ b/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerOptions.java
@@ -78,6 +78,18 @@ public class AnalyzerOptions {
return options;
}
+ /**
+ * Print the tool usage to the given stream.
+ *
+ * @param out
+ */
+ public static void printUsage(PrintStream out) {
+ AnalyzerOptions bean = new AnalyzerOptions();
+ CmdLineParser parser = new CmdLineParser(bean);
+ parser.setUsageWidth(120);
+ parser.printUsage(out);
+ }
+
private static String[] processArgs(String[] args) {
List<String> result = new ArrayList<String>();
@@ -233,17 +245,6 @@ public class AnalyzerOptions {
return warningsAreFatal;
}
- /**
- * Print the tool usage to the given stream.
- *
- * @param out
- */
- public void printUsage(PrintStream out) {
- CmdLineParser parser = new CmdLineParser(this);
- parser.setUsageWidth(120);
- parser.printUsage(out);
- }
-
public void setDartSdkPath(File dartSdkPath) {
this.dartSdkPath = dartSdkPath;
}

Powered by Google App Engine
This is Rietveld 408576698