Extract out Help namespace

This commit is contained in:
Matt Nadareski
2020-12-07 13:57:26 -08:00
parent 8d593c585c
commit 6423e46b53
52 changed files with 721 additions and 685 deletions

View File

@@ -2,6 +2,7 @@
using System.IO;
using System.Linq;
using SabreTools.Help;
using SabreTools.Library.DatFiles;
using SabreTools.Library.DatItems;
using SabreTools.Library.FileTypes;
@@ -18,14 +19,14 @@ namespace RombaSharp.Features
Name = Value;
Flags = new List<string>() { "archive" };
Description = "Adds ROM files from the specified directories to the ROM archive.";
_featureType = SabreTools.Library.Help.FeatureType.Flag;
_featureType = ParameterType.Flag;
LongDescription = @"Adds ROM files from the specified directories to the ROM archive.
Traverses the specified directory trees looking for zip files and normal files.
Unpacked files will be stored as individual entries. Prior to unpacking a zip
file, the external SHA1 is checked against the DAT index.
If -only-needed is set, only those files are put in the ROM archive that
have a current entry in the DAT index.";
Features = new Dictionary<string, SabreTools.Library.Help.Feature>();
Features = new Dictionary<string, SabreTools.Help.Feature>();
AddFeature(OnlyNeededFlag);
AddFeature(ResumeStringInput);
@@ -38,7 +39,7 @@ have a current entry in the DAT index.";
AddFeature(NoDbFlag);
}
public override void ProcessFeatures(Dictionary<string, SabreTools.Library.Help.Feature> features)
public override void ProcessFeatures(Dictionary<string, SabreTools.Help.Feature> features)
{
base.ProcessFeatures(features);