anchor.diff:      }
     }
   
  +  /// Adds a set of "core" command line options to [parser].  If [hide] is
  +  /// `true`, then rarely-used options are hidden.
  +  ///
  +  /// This method will be removed soon; please use [options] instead, and filter
  +  /// out the options you don't need.
  +  @deprecated
  +  static void addCoreOptions(ArgParser parser, bool hide) {
  +    const nonCoreOptions = {
  +      CommandLineOptions.skipPubOutdatedFlag,
  +      CommandLineOptions.webPreviewFlag,
  +      CommandLineOptions.summaryOption,
  +      CommandLineOptions.sdkPathOption
  +    };
  +    for (var option in options) {
  +      if (!option.isSeparator && nonCoreOptions.contains(option.name)) {
  +        continue;
  +      }
  +      option.addToParser(parser, hide);
  +    }
  +  }
  +
     static ArgParser createParser({bool hide = true}) {
       var parser = ArgParser();
       parser.addFlag(CommandLineOptions.helpFlag,
  
positive.code: /// [MigrationCliRunner.run] on the result.  If either method throws a
  /// [MigrationExit], exit with the error code contained therein.
  class MigrationCli {
    /// The name of the executable, for reporting in help messages.
    final String binaryName;
  
  
negative.code:   }
  
    static void _defineOptions(ArgParser parser, bool hide) {
      for (var option in options) {
        option.addToParser(parser, hide);
      }
    }
  }
  
  /// Data structure representing a single command-line option to the migration
  /// tool, or a separator in the list of command-line options.
  class MigrationCliOption {
    /// The name of the option, without the leading `--`.
    final String name;
  
    /// Callback function that can be used to add the option or separator to the
    /// given [parser].  If [hide] is `true`, and the option is rarely used, it
    /// is added as a hidden option.
    final void Function(ArgParser parser, bool hide) addToParser;
  
    /// If `true`, this is a separator between command line options; if `false`,
    /// it's an option.
    final bool isSeparator;
  
    MigrationCliOption(this.name, this.addToParser) : isSeparator = false;
  
    MigrationCliOption.separator(this.name)
        : addToParser = ((parser, hide) => parser.addSeparator(name)),
          isSeparator = true;
  }
  
  /// Internals of the command-line API for the migration tool, with additional
  