Skip to content

Commit

Permalink
Improved formatting of console message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roald87 committed Jun 19, 2020
1 parent caff70b commit c973635
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/TcBlack/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@ static void Main(string[] args)
Parser.Default.ParseArguments<Options>(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
{
Expand Down

0 comments on commit c973635

Please sign in to comment.