Example #1
0
            public static void Write(
                HelpBuilder builder,
                string title,
                string description = null)
            {
                if (!ShouldWrite(description, null))
                {
                    return;
                }

                AppendHeading(builder, title);
                builder.Indent();
                AddDescription(builder, description);
                builder.Outdent();
                builder.AppendBlankLine();
            }
Example #2
0
            public static void Write(
                HelpBuilder builder,
                string title,
                IReadOnlyCollection <ISymbol> usageItems          = null,
                Func <ISymbol, IEnumerable <HelpItem> > formatter = null,
                string description = null)
            {
                if (!ShouldWrite(description, usageItems))
                {
                    return;
                }

                AppendHeading(builder, title);
                builder.Indent();
                AddDescription(builder, description);
                AddInvocation(builder, usageItems, formatter);
                builder.Outdent();
                builder.AppendBlankLine();
            }