You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Nested classes are prohibited if (handwaving) more than 30 people in the world will ever need to use them. (Or a few very niche situations that don't apply here).// Probably wants to be something like "HelpDefaults" as a top level type.publicstaticclassDefault{// All of these feel like properties.publicstaticHelpSectionDelegateAdditionalArgumentsSection();publicstaticHelpSectionDelegateCommandArgumentsSection();publicstaticHelpSectionDelegateCommandUsageSection();publicstaticHelpSectionDelegateOptionsSection();publicstaticHelpSectionDelegateSubcommandsSection();publicstaticHelpSectionDelegateSynopsisSection();// I don't understand what these mean in the context of HelpDefaults. Like, the first one feels like it's just `argument.GetDefaultValue()?.ToString()`.// If it's not, it needs a better name.publicstaticstringGetArgumentDefaultValue(Argumentargument);publicstaticstringGetArgumentDescription(Argumentargument);publicstaticstringGetArgumentUsageLabel(Argumentargument);publicstaticstringGetIdentifierSymbolDescription(IdentifierSymbolsymbol);publicstaticstringGetIdentifierSymbolUsageLabel(IdentifierSymbolsymbol,HelpContextcontext);// GetDefaultLayout, maybe?publicstaticIEnumerable<HelpSectionDelegate>GetLayout();}}// To instance methods.publicstaticclassHelpBuilderExtensions{publicstaticvoidCustomizeSymbol(thisHelpBuilderbuilder,Symbolsymbol,stringfirstColumnText=null,stringsecondColumnText=null,stringdefaultValue=null);publicstaticvoidWrite(thisHelpBuilderhelpBuilder,Commandcommand,TextWriterwriter);}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: