You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/System.CommandLine/Argument.cs
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
namespaceSystem.CommandLine
11
11
{
12
12
/// <summary>
13
-
/// A symbol defining a value that can be passed on the command line to a <see cref="Command">command</see> or <see cref="Option">option</see>.
13
+
/// Represents a symbol that defines a value that can be passed on the command line to a <see cref="Command">command</see> or <see cref="Option">option</see>.
14
14
/// </summary>
15
15
publicabstractclassArgument:Symbol
16
16
{
@@ -22,7 +22,7 @@ public abstract class Argument : Symbol
22
22
/// <summary>
23
23
/// Initializes a new instance of the Argument class.
24
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>
25
+
/// <param name="name">The name of the argument. This value can be used to look up the parsed value and is displayed in help if <see cref="HelpName" /> is null.</param>
/// Represents all of the options for the command, inherited options that have been applied to any of the command's ancestors.
67
+
/// Gets all of the options for the command.
68
68
/// </summary>
69
+
/// <remarks>
70
+
/// This collection doesn't include options on parent commands where <see cref="Option.Recursive">Option.Recursive</see> is <see langword="true" />. Those options are valid under the current command but don't appear in this collection.
71
+
/// </remarks>
69
72
publicIList<Option>Options=>_options??=new(this);
70
73
71
74
internalboolHasOptions=>_options?.Count>0;
72
75
73
76
/// <summary>
74
-
/// Represents all of the subcommands for the command.
Copy file name to clipboardExpand all lines: src/System.CommandLine/Completions/SuggestDirective.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
namespaceSystem.CommandLine.Completions;
4
4
5
5
/// <summary>
6
-
/// Enables the use of the <c>[suggest]</c> directive which when specified in commandline input short circuits normal command handling and writes a newline-delimited list of suggestions suitable for use by most shells to provide command line completions.
6
+
/// Enables the use of the <c>[suggest]</c> directive, which, when specified in command-line input, short circuits normal command handling and writes a newline-delimited list of suggestions suitable for use by most shells to provide command line completions.
7
7
/// </summary>
8
8
/// <remarks>The <c>dotnet-suggest</c> tool requires the suggest directive to be enabled for an application to provide completions.</remarks>
9
9
publicsealedclassSuggestDirective:Directive
@@ -22,4 +22,4 @@ public override CommandLineAction? Action
/// Indicates whether to show help along with error details when an error is found during parsing.
18
+
/// Gets or sets a value that indicates whether to show help along with error details when an error is found during parsing.
19
19
/// </summary>
20
-
/// <remarks>When set to <see langword="true" />, indicates that help will be shown along with parse error details. When set to false, help will not be shown.</remarks>
20
+
/// <value><see langword="true" /> to show help along with parse error details. <see langword="false" /> to not show help.</value>
21
21
publicboolShowHelp{get;set;}=true;
22
22
23
23
/// <summary>
24
-
/// Indicates whether to show typo suggestions along with error details when an error is found during parsing.
24
+
/// Gets or sets a value that indicates whether to show typo suggestions along with error details when an error is found during parsing.
25
25
/// </summary>
26
-
/// <remarks>When set to <see langword="true" />, indicates that suggestions will be shown along with parse error details. When set to false, suggestions will not be shown.</remarks>
26
+
/// <value><see langword="true" /> to show suggestions along with parse error details. <see langword="false" /> to now show suggestions.</value>
27
27
publicboolShowTypoCorrections{get;set;}=true;
28
28
29
29
/// <inheritdoc />
@@ -232,4 +232,4 @@ static int GetDistance(string first, string second)
Copy file name to clipboardExpand all lines: src/System.CommandLine/InvocationConfiguration.cs
+21-12Lines changed: 21 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -9,37 +9,46 @@ public class InvocationConfiguration
9
9
privateTextWriter?_output,_error;
10
10
11
11
/// <summary>
12
-
/// Enables a default exception handler to catch any unhandled exceptions thrown during invocation. Enabled by default.
12
+
/// Gets or sets a value that indicates whether a default exception handler catches any unhandled exceptions thrown during invocation.
13
13
/// </summary>
14
+
/// <value><see langword="true"/> if a default exception handler catches any unhandled exceptions thrown during invocation. The default is <see langword="true"/>.</value>
/// Enables signaling and handling of process termination (Ctrl+C, SIGINT, SIGTERM) via a <see cref="CancellationToken"/>
18
+
/// Gets or sets a time span that enables signaling and handling of process termination (Ctrl+C, SIGINT, SIGTERM) via a <see cref="CancellationToken"/>
18
19
/// that can be passed to a <see cref="CommandLineAction"/> during invocation.
19
-
/// If not provided, a default timeout of 2 seconds is enforced.
/// If this property is set to <see langword="null" />, the termination request isn't handled by System.CommandLine. In that case, the process is terminated immediately unless some other part of the program adds a handler.
0 commit comments