Example #1
0
            static (string name, string description) GetCommandNameAndDescription(CommandInfo c, string prefix, bool oneName = false)
            {
                prefix = StringUtils.AppendIfNotNull(prefix, " ");

                return(
                    $"{prefix}{(oneName ? c.Name : string.Join('/', GetAliasesWithoutParent(c.Aliases)))}",
                    $"{StringUtils.AppendIfNotNull(c.Summary, "\r\n\r\n")}**Usage:** `{prefix}{c.Name} {string.Join(' ', c.Parameters.Select(p => $"<{p.Name}>"))}`"
                    );
            }