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()
7272 /// <param name="name">The name of the argument.</param>
7373 /// <param name="parse">A custom argument parser.</param>
7474 /// <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>
7576 /// <exception cref="ArgumentNullException">Thrown when <paramref name="parse"/> is null.</exception>
7677 public Argument (
7778 string ? name ,
7879 ParseArgument < T > parse ,
79- bool isDefault = false ) : this ( )
80+ bool isDefault = false ,
81+ string ? description = null ) : this ( )
8082 {
8183 if ( ! string . IsNullOrWhiteSpace ( name ) )
8284 {
@@ -108,6 +110,8 @@ public Argument(
108110 return false ;
109111 }
110112 } ;
113+
114+ Description = description ;
111115 }
112116
113117 /// <summary>
You can’t perform that action at this time.
0 commit comments