OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:io'; | 6 import 'dart:io'; |
7 | 7 |
8 import 'package:args/args.dart'; | 8 import 'package:args/args.dart'; |
9 import 'package:analysis_server/src/analysis_manager.dart'; | 9 import 'package:analysis_server/src/analysis_manager.dart'; |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 }); | 22 }); |
23 } | 23 } |
24 | 24 |
25 /** | 25 /** |
26 * Instances of [_DartDependencyAnalyzer] launch an analysis server and use | 26 * Instances of [_DartDependencyAnalyzer] launch an analysis server and use |
27 * that server to analyze the dependencies of an application. | 27 * that server to analyze the dependencies of an application. |
28 */ | 28 */ |
29 class _DartDependencyAnalyzer { | 29 class _DartDependencyAnalyzer { |
30 /** | 30 /** |
31 * The name of the application that is used to start the analyzer. | 31 * The name of the application that is used to start the dependency analyzer. |
32 */ | 32 */ |
33 static const BINARY_NAME = 'dartdeps'; | 33 static const BINARY_NAME = 'dartdeps'; |
34 | 34 |
35 /** | 35 /** |
36 * The name of the option used to specify the Dart SDK. | 36 * The name of the option used to specify the Dart SDK. |
37 */ | 37 */ |
38 static const String DART_SDK_OPTION = 'dart-sdk'; | 38 static const String DART_SDK_OPTION = 'dart-sdk'; |
39 | 39 |
40 /** | 40 /** |
41 * The name of the option used to print usage information. | 41 * The name of the option used to print usage information. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 } | 174 } |
175 | 175 |
176 /** | 176 /** |
177 * Print information about how to use the server. | 177 * Print information about how to use the server. |
178 */ | 178 */ |
179 void printUsage(ArgParser parser) { | 179 void printUsage(ArgParser parser) { |
180 print('Usage: $BINARY_NAME [flags] <application_directory>'); | 180 print('Usage: $BINARY_NAME [flags] <application_directory>'); |
181 print(''); | 181 print(''); |
182 print('Supported flags are:'); | 182 print('Supported flags are:'); |
183 print(parser.getUsage()); | 183 print(parser.usage); |
184 } | 184 } |
185 } | 185 } |
OLD | NEW |