Class ArgumentAttribute
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Represents one or many positional command line arguments. Arguments are parsed based the Order given.
[AttributeUsage(AttributeTargets.Property)]
public sealed class ArgumentAttribute : Attribute
- Inheritance
-
objectAttributeArgumentAttribute
Constructors
ArgumentAttribute(int)
Initializes a new ArgumentAttribute.
public ArgumentAttribute(int order)
Parameters
orderintThe order
ArgumentAttribute(int, string?)
Initializes a new ArgumentAttribute.
public ArgumentAttribute(int order, string? name)
Parameters
ArgumentAttribute(int, string?, string?)
Initializes a new ArgumentAttribute.
public ArgumentAttribute(int order, string? name, string? description)
Parameters
Properties
Description
A description of the argument.
public string? Description { get; set; }
Property Value
- See Also
Name
The name of the argument.
public string? Name { get; set; }
Property Value
- See Also
Order
The order in which the argument is expected, relative to other arguments.
public int Order { get; set; }
Property Value
ShowInHelpText
Determines if the argument appears in the generated help-text.
public bool ShowInHelpText { get; set; }
Property Value
- See Also