2024-03-06 01:04:51 -05:00
|
|
|
|
using SabreTools.Help;
|
2020-08-01 13:25:32 -07:00
|
|
|
|
|
|
|
|
|
|
namespace RombaSharp.Features
|
|
|
|
|
|
{
|
|
|
|
|
|
internal class DisplayHelpDetailed : BaseFeature
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Value = "Help (Detailed)";
|
|
|
|
|
|
|
|
|
|
|
|
public DisplayHelpDetailed()
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = Value;
|
2024-07-18 01:06:40 -04:00
|
|
|
|
Flags.AddRange(["-??", "-hd", "--help-detailed"]);
|
2020-08-01 13:25:32 -07:00
|
|
|
|
Description = "Show this detailed help";
|
2020-12-07 13:57:26 -08:00
|
|
|
|
_featureType = ParameterType.Flag;
|
2020-08-01 13:25:32 -07:00
|
|
|
|
LongDescription = "Display a detailed help text to the screen.";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2020-12-08 17:05:08 -08:00
|
|
|
|
public override bool ProcessArgs(string[] args, FeatureSet help)
|
2020-08-01 13:25:32 -07:00
|
|
|
|
{
|
|
|
|
|
|
// 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;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|