From fbc51f8e1810b0a208a2049fa6f7ecc26c620fa9 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Thu, 29 Apr 2021 22:35:56 -0400 Subject: [PATCH] allow subclasses to set Arguments value, and provide a ToString implementation --- MBS.Framework/CommandLine.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MBS.Framework/CommandLine.cs b/MBS.Framework/CommandLine.cs index 95d30b5..172d56a 100644 --- a/MBS.Framework/CommandLine.cs +++ b/MBS.Framework/CommandLine.cs @@ -29,7 +29,7 @@ namespace MBS.Framework /// Gets the original array of arguments. /// /// The arguments. - public string[] Arguments { get; private set; } + public string[] Arguments { get; protected set; } /// /// Gets the list of file names passed on the command line. @@ -46,5 +46,10 @@ namespace MBS.Framework { this.Arguments = arguments; } + + public override string ToString() + { + return String.Join(" ", Arguments); + } } }