mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
|
|
using SabreTools.Help;
|
|
|
|
namespace RombaSharp.Features
|
|
{
|
|
internal class DisplayHelpDetailed : BaseFeature
|
|
{
|
|
public const string Value = "Help (Detailed)";
|
|
|
|
public DisplayHelpDetailed()
|
|
{
|
|
Name = Value;
|
|
Flags = new List<string>() { "-??", "-hd", "--help-detailed" };
|
|
Description = "Show this detailed help";
|
|
_featureType = ParameterType.Flag;
|
|
LongDescription = "Display a detailed help text to the screen.";
|
|
Features = new Dictionary<string, Feature>();
|
|
}
|
|
|
|
public override bool ProcessArgs(string[] args, FeatureSet help)
|
|
{
|
|
// If we had something else after help
|
|
if (args.Length > 1)
|
|
{
|
|
help.OutputIndividualFeature(args[1], includeLongDescription: true);
|
|
return true;
|
|
}
|
|
|
|
// Otherwise, show generic help
|
|
else
|
|
{
|
|
help.OutputAllHelp();
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|