File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ public abstract class Argument : Symbol
1919 private List < Func < CompletionContext , IEnumerable < CompletionItem > > > ? _completionSources = null ;
2020 private List < Action < ArgumentResult > > ? _validators = null ;
2121
22- private protected Argument ( string name ) : base ( name , allowWhitespace : true )
22+ /// <summary>
23+ /// Initializes a new instance of the Argument class.
24+ /// </summary>
25+ /// <param name="name">The name of the argument. This can be used to look up the parsed value and is displayed in help</param>
26+ protected Argument ( string name ) : base ( name , allowWhitespace : true )
2327 {
2428 }
2529
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class Argument<T> : Argument
1515 /// <summary>
1616 /// Initializes a new instance of the Argument class.
1717 /// </summary>
18- /// <param name="name">The name of the argument. It's not used for parsing, only when displaying Help or creating parse errors. </param> >
18+ /// <param name="name">The name of the argument. This can be used to look up the parsed value and is displayed in help </param>
1919 public Argument ( string name ) : base ( name )
2020 {
2121 }
Original file line number Diff line number Diff line change @@ -17,7 +17,12 @@ public abstract class Option : Symbol
1717 internal AliasSet ? _aliases ;
1818 private List < Action < OptionResult > > ? _validators ;
1919
20- private protected Option ( string name , string [ ] aliases ) : base ( name )
20+ /// <summary>
21+ /// Initializes a new instance of the <see cref="Option"/> class.
22+ /// </summary>
23+ /// <param name="name">The name of the option. This is used during parsing and is displayed in help.</param>
24+ /// <param name="aliases">Optional aliases by which the option can be specified on the command line.</param>
25+ protected Option ( string name , string [ ] aliases ) : base ( name )
2126 {
2227 if ( aliases is { Length : > 0 } )
2328 {
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ public class Option<T> : Option
1414 /// <summary>
1515 /// Initializes a new instance of the <see cref="Option"/> class.
1616 /// </summary>
17- /// <param name="name">The name of the option. It's used for parsing, displaying Help and creating parse errors .</param> >
18- /// <param name="aliases">Optional aliases. Used for parsing, suggestions and displayed in Help .</param>
17+ /// <param name="name">The name of the option. This is used during parsing and is displayed in help .</param>
18+ /// <param name="aliases">Optional aliases by which the option can be specified on the command line .</param>
1919 public Option ( string name , params string [ ] aliases )
2020 : this ( name , aliases , new Argument < T > ( name ) )
2121 {
You can’t perform that action at this time.
0 commit comments