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