Rename Help class to FeatureSet

This commit is contained in:
Matt Nadareski
2020-12-08 17:05:08 -08:00
parent 429fbabf72
commit 9c51831c81
8 changed files with 14 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ namespace RombaSharp.Features
Features = new Dictionary<string, Feature>();
}
public override bool ProcessArgs(string[] args, Help help)
public override bool ProcessArgs(string[] args, FeatureSet help)
{
// If we had something else after help
if (args.Length > 1)

View File

@@ -18,7 +18,7 @@ namespace RombaSharp.Features
Features = new Dictionary<string, Feature>();
}
public override bool ProcessArgs(string[] args, Help help)
public override bool ProcessArgs(string[] args, FeatureSet help)
{
// If we had something else after help
if (args.Length > 1)

View File

@@ -23,7 +23,7 @@ namespace RombaSharp
/// <summary>
/// Help object that determines available functionality
/// </summary>
private static Help _help;
private static FeatureSet _help;
/// <summary>
/// Logging object
@@ -169,7 +169,7 @@ namespace RombaSharp
/// Generate a Help object for this program
/// </summary>
/// <returns>Populated Help object</returns>
private static Help RetrieveHelp()
private static FeatureSet RetrieveHelp()
{
// Create and add the header to the Help object
string barrier = "-----------------------------------------";
@@ -182,7 +182,7 @@ namespace RombaSharp
};
// Create the base help object with header
Help help = new Help(helpHeader);
FeatureSet help = new FeatureSet(helpHeader);
// Add all of the features
help.Add(new DisplayHelp());

View File

@@ -4,7 +4,7 @@ using System.Linq;
namespace SabreTools.Help
{
public class Help
public class FeatureSet
{
#region Private variables
@@ -16,13 +16,13 @@ namespace SabreTools.Help
#region Constructors
public Help()
public FeatureSet()
{
_header = new List<string>();
_features = new Dictionary<string, Feature>();
}
public Help(List<string> header)
public FeatureSet(List<string> header)
{
_header = header;
_features = new Dictionary<string, Feature>();

View File

@@ -46,7 +46,7 @@ namespace SabreTools.Help
/// <summary>
/// Process args list based on current feature
/// </summary>
public virtual bool ProcessArgs(string[] args, Help help)
public virtual bool ProcessArgs(string[] args, FeatureSet help)
{
for (int i = 1; i < args.Length; i++)
{

View File

@@ -18,7 +18,7 @@ namespace SabreTools.Features
Features = new Dictionary<string, Feature>();
}
public override bool ProcessArgs(string[] args, Help.Help help)
public override bool ProcessArgs(string[] args, FeatureSet help)
{
// If we had something else after help
if (args.Length > 1)

View File

@@ -18,7 +18,7 @@ namespace SabreTools.Features
Features = new Dictionary<string, Feature>();
}
public override bool ProcessArgs(string[] args, Help.Help help)
public override bool ProcessArgs(string[] args, FeatureSet help)
{
// If we had something else after help
if (args.Length > 1)

View File

@@ -15,7 +15,7 @@ namespace SabreTools
/// <summary>
/// Help object that determines available functionality
/// </summary>
private static Help.Help _help;
private static FeatureSet _help;
/// <summary>
/// Logging object
@@ -149,7 +149,7 @@ namespace SabreTools
/// Generate a Help object for this program
/// </summary>
/// <returns>Populated Help object</returns>
private static Help.Help RetrieveHelp()
private static FeatureSet RetrieveHelp()
{
// Create and add the header to the Help object
string barrier = "-----------------------------------------";
@@ -162,7 +162,7 @@ namespace SabreTools
};
// Create the base help object with header
Help.Help help = new Help.Help(helpHeader);
FeatureSet help = new FeatureSet(helpHeader);
// Add all of the features
help.Add(new DisplayHelp());