using System.Collections.Generic; using System.IO; using SabreTools.Help; using SabreTools.Library.DatFiles; using SabreTools.Library.Reports; namespace RombaSharp.Features { internal class DatStats : BaseFeature { public const string Value = "DatStats"; public DatStats() { Name = Value; Flags = new List() { "datstats" }; Description = "Prints dat stats."; _featureType = ParameterType.Flag; LongDescription = "Print dat stats."; Features = new Dictionary(); } public override void ProcessFeatures(Dictionary features) { base.ProcessFeatures(features); // If we have no inputs listed, we want to use datroot if (Inputs == null || Inputs.Count == 0) Inputs = new List { Path.GetFullPath(_dats) }; // Now output the stats for all inputs ItemDictionary.OutputStats(Inputs, "rombasharp-datstats", null /* outDir */, true /* single */, true /* baddumpCol */, true /* nodumpCol */, StatReportFormat.Textfile); } } }