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>(); 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 we had something else after help
if (args.Length > 1) if (args.Length > 1)

View File

@@ -18,7 +18,7 @@ namespace RombaSharp.Features
Features = new Dictionary<string, Feature>(); 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 we had something else after help
if (args.Length > 1) if (args.Length > 1)

View File

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

View File

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

View File

@@ -46,7 +46,7 @@ namespace SabreTools.Help
/// <summary> /// <summary>
/// Process args list based on current feature /// Process args list based on current feature
/// </summary> /// </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++) for (int i = 1; i < args.Length; i++)
{ {

View File

@@ -18,7 +18,7 @@ namespace SabreTools.Features
Features = new Dictionary<string, Feature>(); 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 we had something else after help
if (args.Length > 1) if (args.Length > 1)

View File

@@ -18,7 +18,7 @@ namespace SabreTools.Features
Features = new Dictionary<string, Feature>(); 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 we had something else after help
if (args.Length > 1) if (args.Length > 1)

View File

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