Unosquare
    Show / Hide Table of Contents

    Class ArgumentParserSettings

    Provides settings for ArgumentParser. Based on CommandLine (Copyright 2005-2015 Giacomo Stelluti Scala and Contributors.).

    Inheritance
    Object
    ArgumentParserSettings
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Swan.Parsers
    Syntax
    public class ArgumentParserSettings

    Properties

    CaseInsensitiveEnumValues

    Gets or sets a value indicating whether perform case sensitive comparisons of values. Note that case insensitivity only applies to values, not the parameters.

    Declaration
    public bool CaseInsensitiveEnumValues { get; set; }
    Property Value
    Type Description
    Boolean

    true if [case insensitive enum values]; otherwise, false.

    CaseSensitive

    Gets or sets a value indicating whether perform case sensitive comparisons. Note that case insensitivity only applies to parameters, not the values assigned to them (for example, enum parsing).

    Declaration
    public bool CaseSensitive { get; set; }
    Property Value
    Type Description
    Boolean

    true if [case sensitive]; otherwise, false.

    IgnoreUnknownArguments

    Gets or sets a value indicating whether the parser shall move on to the next argument and ignore the given argument if it encounter an unknown arguments.

    Declaration
    public bool IgnoreUnknownArguments { get; set; }
    Property Value
    Type Description
    Boolean

    true to allow parsing the arguments with different class options that do not have all the arguments.

    Remarks

    This allows fragmented version class parsing, useful for project with add-on where add-ons also requires command line arguments but when these are unknown by the main program at build time.

    WriteBanner

    Gets or sets a value indicating whether [write banner].

    Declaration
    public bool WriteBanner { get; set; }
    Property Value
    Type Description
    Boolean

    true if [write banner]; otherwise, false.

    Comments

    Back to top Copyright © 2017-2019 Unosquare