anchor.diff:      error.apply();
     }
     print('$clock ${bold}Analysis successful.$reset');
  +}
  +
  +/// Scans [arguments] for an argument of the form `--dart-sdk` or
  +/// `--dart-sdk=...` and returns the configured SDK, if any.
  +String? _getDartSdkFromArguments(List<String> arguments) {
  +  String? result;
  +  for (int i = 0; i < arguments.length; i += 1) {
  +    if (arguments[i] == '--dart-sdk') {
  +      if (result != null) {
  +        exitWithError(<String>['The --dart-sdk argument must not be used more than once.']);
  +      }
  +      if (i + 1 < arguments.length) {
  +        result = arguments[i + 1];
  +      } else {
  +        exitWithError(<String>['--dart-sdk must be followed by a path.']);
  +      }
  +    }
  +    if (arguments[i].startsWith('--dart-sdk=')) {
  +      if (result != null) {
  +        exitWithError(<String>['The --dart-sdk argument must not be used more than once.']);
  +      }
  +      result = arguments[i].substring('--dart-sdk='.length);
  +    }
  +  }
  +  return result;
   }
   
   Future<void> run(List<String> arguments) async {
  
positive.code: /// For example:
  /// bin/cache/dart-sdk/bin/dart dev/bots/analyze.dart --dart-sdk=/tmp/dart-sdk
  Future<void> main(List<String> arguments) async {
    print('$clock STARTING ANALYSIS');
    try {
      await run(arguments);
  
negative.code: final String flutter = path.join(flutterRoot, 'bin', Platform.isWindows ? 'flutter.bat' : 'flutter');
  final String flutterPackages = path.join(flutterRoot, 'packages');
  final String flutterExamples = path.join(flutterRoot, 'examples');
  
  /// The path to the `dart` executable; set at the top of `main`
  late final String dart;
  
  /// The path to the `pub` executable; set at the top of `main`
  late final String pub;
  
  final String pubCache = path.join(flutterRoot, '.pub-cache');
  
  /// When you call this, you can pass additional arguments to pass custom
  