File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,13 @@ public Argument(Func<T> getDefaultValue) : this()
72
72
/// <param name="name">The name of the argument.</param>
73
73
/// <param name="parse">A custom argument parser.</param>
74
74
/// <param name="isDefault"><c>true</c> to use the <paramref name="parse"/> result as default value.</param>
75
+ /// <param name="description">The description of the argument, shown in help.</param>
75
76
/// <exception cref="ArgumentNullException">Thrown when <paramref name="parse"/> is null.</exception>
76
77
public Argument (
77
78
string ? name ,
78
79
ParseArgument < T > parse ,
79
- bool isDefault = false ) : this ( )
80
+ bool isDefault = false ,
81
+ string ? description = null ) : this ( )
80
82
{
81
83
if ( ! string . IsNullOrWhiteSpace ( name ) )
82
84
{
@@ -108,6 +110,8 @@ public Argument(
108
110
return false ;
109
111
}
110
112
} ;
113
+
114
+ Description = description ;
111
115
}
112
116
113
117
/// <summary>
You can’t perform that action at this time.
0 commit comments