internal CommandParameterInfo(ParameterInfo parameter) { ParameterType = parameter.ParameterType; var attribute = parameter.GetCustomAttribute <CommandArgumentAttribute>(); if (attribute != null) { _description = attribute.Description; _default = attribute.Default; _option = attribute.Options; } Parameter = parameter; Attribute = attribute; }
public CommandArgumentAttribute(string description, CommandArgumentOption options, object defaultValue) { Description = description; Options = options; Default = defaultValue; }
public CommandArgumentAttribute(string description, CommandArgumentOption options) : this(description, options, null) { }