/// <summary> /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class /// specifying heading string. /// </summary> /// <param name="heading">An heading string or an instance of <see cref="CommandLine.Text.HeadingInfo"/>.</param> /// <exception cref="System.ArgumentException">Thrown when parameter <paramref name="heading"/> is null or empty string.</exception> public HelpText(string heading) : this(SentenceBuilder.Create(), heading, string.Empty) { }
/// <summary> /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class /// specifying heading and copyright strings. /// </summary> /// <param name="heading">A string with heading or an instance of <see cref="CommandLine.Text.HeadingInfo"/>.</param> /// <param name="copyright">A string with copyright or an instance of <see cref="CommandLine.Text.CopyrightInfo"/>.</param> /// <exception cref="System.ArgumentNullException">Thrown when one or more parameters are null or empty strings.</exception> public HelpText(string heading, string copyright) : this(SentenceBuilder.Create(), heading, copyright) { }
/// <summary> /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class. /// </summary> public HelpText() : this(SentenceBuilder.Create(), string.Empty, string.Empty) { }