using System.Collections.Generic; using SabreTools.Library.Data; using SabreTools.Library.Help; namespace RombaSharp.Features { internal class DisplayHelpDetailed : BaseFeature { public const string Value = "Help (Detailed)"; public DisplayHelpDetailed() { Name = Value; Flags = new List() { "-??", "-hd", "--help-detailed" }; Description = "Show this detailed help"; _featureType = FeatureType.Flag; LongDescription = "Display a detailed help text to the screen."; Features = new Dictionary(); } public override bool ProcessArgs(string[] args, Help 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; } } } }