Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
|
Brian Wilkerson
2017/04/24 20:26:47
If you're going to bother to rename this (and I do
devoncarew
2017/04/24 22:10:00
No strong preference here - my intent was to make
| |
| 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 analyzer_cli.src.options; | |
| 6 | |
| 7 import 'dart:io'; | 5 import 'dart:io'; |
| 8 | 6 |
| 9 import 'package:analyzer/file_system/physical_file_system.dart'; | 7 import 'package:analyzer/file_system/physical_file_system.dart'; |
| 10 import 'package:analyzer/src/command_line/arguments.dart'; | 8 import 'package:analyzer/src/command_line/arguments.dart'; |
| 11 import 'package:analyzer/src/context/builder.dart'; | 9 import 'package:analyzer/src/context/builder.dart'; |
| 10 import 'package:analyzer_cli/src/analyzer_driver.dart'; | |
| 12 import 'package:analyzer_cli/src/ansi.dart' as ansi; | 11 import 'package:analyzer_cli/src/ansi.dart' as ansi; |
| 13 import 'package:analyzer_cli/src/driver.dart'; | |
| 14 import 'package:args/args.dart'; | 12 import 'package:args/args.dart'; |
| 15 import 'package:cli_util/cli_util.dart' show getSdkDir; | 13 import 'package:cli_util/cli_util.dart' show getSdkDir; |
| 16 | 14 |
| 17 const _binaryName = 'dartanalyzer'; | 15 const _binaryName = 'dartanalyzer'; |
| 18 | 16 |
| 19 /// Shared exit handler. | 17 /// Shared exit handler. |
| 20 /// | 18 /// |
| 21 /// *Visible for testing.* | 19 /// *Visible for testing.* |
| 22 ExitHandler exitHandler = exit; | 20 ExitHandler exitHandler = exit; |
| 23 | 21 |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 559 'Usage: $_binaryName [options...] <directory or list of files>'); | 557 'Usage: $_binaryName [options...] <directory or list of files>'); |
| 560 errorSink.writeln(''); | 558 errorSink.writeln(''); |
| 561 errorSink.writeln(parser.usage); | 559 errorSink.writeln(parser.usage); |
| 562 errorSink.writeln(''); | 560 errorSink.writeln(''); |
| 563 errorSink.writeln(''' | 561 errorSink.writeln(''' |
| 564 Run "dartanalyzer -h -v" for verbose help output, including less commonly used o ptions. | 562 Run "dartanalyzer -h -v" for verbose help output, including less commonly used o ptions. |
| 565 For more information, see http://www.dartlang.org/tools/analyzer. | 563 For more information, see http://www.dartlang.org/tools/analyzer. |
| 566 '''); | 564 '''); |
| 567 } | 565 } |
| 568 } | 566 } |
| OLD | NEW |