@@ -9,8 +9,6 @@ namespace Microsoft.Testing.Platform.CommandLine;
99[ Experimental ( "TPEXP" , UrlFormat = "https://aka.ms/testingplatform/diagnostics#{0}" ) ]
1010public sealed class CommandLineParseResult : IEquatable < CommandLineParseResult >
1111{
12- private readonly IReadOnlyList < string > _arguments ;
13-
1412 /// <summary>
1513 /// The prefix for options.
1614 /// </summary>
@@ -33,22 +31,11 @@ public CommandLineParseResult(string? toolName, IReadOnlyList<CommandLineParseOp
3331 }
3432
3533 internal CommandLineParseResult ( string ? toolName , IReadOnlyList < CommandLineParseOption > options , IReadOnlyList < string > errors , IReadOnlyList < string > arguments )
36- : this ( toolName , options , errors , arguments , arguments )
37- {
38- }
39-
40- internal CommandLineParseResult (
41- string ? toolName ,
42- IReadOnlyList < CommandLineParseOption > options ,
43- IReadOnlyList < string > errors ,
44- IReadOnlyList < string > arguments ,
45- IReadOnlyList < string > expandedArguments )
4634 {
4735 ToolName = toolName ;
4836 Options = options ;
49- _arguments = expandedArguments ;
50- Errors = errors . Select ( RedactError ) . ToArray ( ) ;
51- CommandLine = CommandLineArgumentsRedactor . Redact ( [ .. arguments ] ) ;
37+ Errors = errors ;
38+ CommandLine = string . Join ( " " , arguments ) ;
5239 }
5340
5441 /// <summary>
@@ -68,8 +55,6 @@ internal CommandLineParseResult(
6855
6956 internal string CommandLine { get ; }
7057
71- internal string RedactError ( string error ) => CommandLineArgumentsRedactor . RedactError ( error , _arguments ) ;
72-
7358 /// <summary>
7459 /// Gets a value indicating whether the parsing has errors.
7560 /// </summary>
0 commit comments