| 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;
|
| }
|
|
|