/// <summary> /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class /// specifying the sentence builder. /// </summary> /// <param name="sentenceBuilder"> /// A <see cref="BaseSentenceBuilder"/> instance. /// </param> public HelpText(BaseSentenceBuilder sentenceBuilder) : this() { Assumes.NotNull(sentenceBuilder, "sentenceBuilder"); _sentenceBuilder = sentenceBuilder; }
/// <summary> /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class. /// </summary> public HelpText() { _preOptionsHelp = new StringBuilder(BuilderCapacity); _postOptionsHelp = new StringBuilder(BuilderCapacity); _sentenceBuilder = BaseSentenceBuilder.CreateBuiltIn(); }
/// <summary> /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class /// specifying heading and copyright strings. /// </summary> /// <param name="sentenceBuilder">A <see cref="BaseSentenceBuilder"/> instance.</param> /// <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> /// <param name="options">The instance that collected command line arguments parsed with <see cref="Parser"/> class.</param> /// <exception cref="System.ArgumentException">Thrown when one or more parameters <paramref name="heading"/> are null or empty strings.</exception> public HelpText(BaseSentenceBuilder sentenceBuilder, string heading, string copyright, object options) : this(heading, copyright, options) { Assumes.NotNull(sentenceBuilder, "sentenceBuilder"); _sentenceBuilder = sentenceBuilder; }
/// <summary> /// Initializes a new instance of the <see cref="CommandLine.Text.HelpText"/> class /// specifying the sentence builder and heading string. /// </summary> /// <param name="sentenceBuilder">A <see cref="BaseSentenceBuilder"/> instance.</param> /// <param name="heading">A string with heading or an instance of <see cref="CommandLine.Text.HeadingInfo"/>.</param> public HelpText(BaseSentenceBuilder sentenceBuilder, string heading) : this(heading) { Assumes.NotNull(sentenceBuilder, "sentenceBuilder"); _sentenceBuilder = sentenceBuilder; }