Fix build from previous commits

This commit is contained in:
Matt Nadareski
2024-07-18 01:06:40 -04:00
parent 6c4293201d
commit f0ff6c6990
36 changed files with 49 additions and 79 deletions

View File

@@ -13,11 +13,10 @@ namespace RombaSharp.Features
public DatStats()
{
Name = Value;
Flags = ["datstats"];
Flags.AddRange(["datstats"]);
Description = "Prints dat stats.";
_featureType = ParameterType.Flag;
LongDescription = "Print dat stats.";
Features = [];
// Common Features
AddCommonFeatures();
@@ -30,8 +29,8 @@ namespace RombaSharp.Features
return false;
// If we have no inputs listed, we want to use datroot
if (Inputs == null || Inputs.Count == 0)
Inputs = new List<string> { Path.GetFullPath(_dats!) };
if (Inputs.Count == 0)
Inputs.Add(Path.GetFullPath(_dats!));
// Now output the stats for all inputs
var statistics = Statistics.CalculateStatistics(Inputs, single: true);