diff --git a/src/TcBlack/Program.cs b/src/TcBlack/Program.cs index 0e2884c..b72ee02 100644 --- a/src/TcBlack/Program.cs +++ b/src/TcBlack/Program.cs @@ -13,19 +13,22 @@ static void Main(string[] args) Parser.Default.ParseArguments(args) .WithParsed(o => { - string files = string.Join("\n", o.Filenames); + string files = string.Join( + "\n", + o.Filenames.Select(filename => $" - {filename}").ToArray() + ); if (o.Safe) { Console.WriteLine( - $"Formatting file(s) in safe mode:\n{files}\n" + $"\nFormatting file(s) in safe mode:\n{files}\n" ); SafeFormat(o); } else { Console.WriteLine( - $"Formatting file(s) in fast non-safe mode:\n{files}\n" + $"\nFormatting file(s) in fast non-safe mode:\n{files}\n" ); try {