| 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 library driver; | 5 library driver; |
| 6 | 6 |
| 7 import 'dart:async'; |
| 7 import 'dart:io'; | 8 import 'dart:io'; |
| 8 | 9 |
| 9 import 'package:analysis_server/http_server.dart'; | 10 import 'package:analysis_server/http_server.dart'; |
| 10 import 'package:analysis_server/src/socket_server.dart'; | 11 import 'package:analysis_server/src/socket_server.dart'; |
| 11 import 'package:analysis_server/stdio_server.dart'; | 12 import 'package:analysis_server/stdio_server.dart'; |
| 12 import 'package:analyzer/src/generated/java_io.dart'; | 13 import 'package:analyzer/src/generated/java_io.dart'; |
| 13 import 'package:analyzer/src/generated/sdk.dart'; | 14 import 'package:analyzer/src/generated/sdk.dart'; |
| 14 import 'package:analyzer/src/generated/sdk_io.dart'; | 15 import 'package:analyzer/src/generated/sdk_io.dart'; |
| 15 import 'package:args/args.dart'; | 16 import 'package:args/args.dart'; |
| 16 | 17 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 /** | 167 /** |
| 167 * Print information about how to use the server. | 168 * Print information about how to use the server. |
| 168 */ | 169 */ |
| 169 void _printUsage(ArgParser parser) { | 170 void _printUsage(ArgParser parser) { |
| 170 print('Usage: $BINARY_NAME [flags]'); | 171 print('Usage: $BINARY_NAME [flags]'); |
| 171 print(''); | 172 print(''); |
| 172 print('Supported flags are:'); | 173 print('Supported flags are:'); |
| 173 print(parser.usage); | 174 print(parser.usage); |
| 174 } | 175 } |
| 175 } | 176 } |
| OLD | NEW |