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
@@ -103,10 +103,10 @@ public ReadOnlySpan<string> EscapedArguments
103
103
{
104
104
get => (EscapeIndex == -1)
105
105
? Array.Empty<string>()
106
-
: Arguments.Span.Slice(EscapeIndex + 1);
106
+
: Arguments.AsSpan(EscapeIndex + 1);
107
107
}
108
108
109
-
public ConsoleAppContext(string commandName, ReadOnlyMemory<string> arguments, ReadOnlyMemory<string> internalCommandArgs, object? state, object? globalOptions, int commandDepth, int escapeIndex)
109
+
public ConsoleAppContext(string commandName, string[] arguments, ReadOnlyMemory<string> internalCommandArgs, object? state, object? globalOptions, int commandDepth, int escapeIndex)
110
110
{
111
111
this.CommandName = commandName;
112
112
this.Arguments = arguments;
@@ -123,7 +123,7 @@ public ConsoleAppContext(string commandName, ReadOnlyMemory<string> arguments, R
123
123
/// <returns>A space-separated string of all arguments.</returns>
124
124
public override string ToString()
125
125
{
126
-
return string.Join(" ", Arguments.ToArray());
126
+
return string.Join(" ", Arguments);
127
127
}
128
128
}
129
129
@@ -230,7 +230,7 @@ public static Action<string> LogError
230
230
/// ConsoleApp.Run(args, Foo);<br/>
231
231
/// ConsoleApp.Run(args, &Foo);<br/>
232
232
/// </summary>
233
-
public static void Run(ReadOnlyMemory<string> args)
233
+
public static void Run(string[] args)
234
234
{
235
235
}
236
236
@@ -240,7 +240,7 @@ public static void Run(ReadOnlyMemory<string> args)
240
240
/// ConsoleApp.RunAsync(args, Foo);<br/>
241
241
/// ConsoleApp.RunAsync(args, &Foo);<br/>
242
242
/// </summary>
243
-
public static Task RunAsync(ReadOnlyMemory<string> args)
243
+
public static Task RunAsync(string[] args)
244
244
{
245
245
return Task.CompletedTask;
246
246
}
@@ -510,10 +510,10 @@ public void UseFilter<T>() where T : ConsoleAppFilter { }
0 commit comments