allow subclasses to set Arguments value, and provide a ToString implementation

This commit is contained in:
Michael Becker 2021-04-29 22:35:56 -04:00
parent 2ed59233b3
commit fbc51f8e18
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -29,7 +29,7 @@ namespace MBS.Framework
/// Gets the original <see cref="String" /> array of arguments. /// Gets the original <see cref="String" /> array of arguments.
/// </summary> /// </summary>
/// <value>The arguments.</value> /// <value>The arguments.</value>
public string[] Arguments { get; private set; } public string[] Arguments { get; protected set; }
/// <summary> /// <summary>
/// Gets the list of file names passed on the command line. /// Gets the list of file names passed on the command line.
@ -46,5 +46,10 @@ namespace MBS.Framework
{ {
this.Arguments = arguments; this.Arguments = arguments;
} }
public override string ToString()
{
return String.Join(" ", Arguments);
}
} }
} }