dotnet-script compilation error fixed.

This commit is contained in:
Marek Lemańczyk committed 2025-10-03 19:37:42 +02:00
1 parent 941b51ebcf
commit 2101e19e31
1 file changed
+2
+2
View File
@@ -1,3 +1,4 @@
#nullable enable
using System;
using System.Collections.Generic;
using System.Globalization;
@@ -40,6 +41,7 @@ internal sealed class FileSnapshot
public bool HadTrailingNewLine { get; set; }
}
var args = Args?.ToArray() ?? Array.Empty<string>();
if (args.Length == 0)
{
Console.Error.WriteLine("Usage: dotnet script apply_patch.cs -- <patch-file> [target-directory]");