anchor.diff:    var tempPath = await tempDir.resolveSymbolicLinks();
   
     try {
  +    final String pubHostedUrl = result['hosted-url'];
  +    final analyzer = await PackageAnalyzer.create(
  +      pubCacheDir: tempPath,
  +      flutterDir: result['flutter-sdk'] as String,
  +    );
  +    final options = InspectOptions(
  +      verbosity: verbosity,
  +      pubHostedUrl: pubHostedUrl,
  +    );
       try {
         Summary summary;
         if (source == 'hosted') {
  
positive.code:                   'To remove this message, use `--no-warning`.');
            await Future.delayed(const Duration(seconds: 15));
          }
  
          var analyzer = await PackageAnalyzer.create(pubCacheDir: tempPath);
          summary = await analyzer.inspectDir(absolutePath);
        }
        print(prettyJson(summary));
      } catch (e, stack) {
  
negative.code:         if (result.rest.length > 1) {
            version = result.rest[1];
          }
          if (pubHostedUrl != defaultHostedUrl && version == null) {
            _printHelp(
                errorMessage:
                    'Version must be specified when using --hosted-url option.');
            return;
          }
          summary = await analyzer.inspectPackage(package,
              version: version, options: options);
        } else if (source == 'path') {
  