dotnet-script compilation error fixed.
This commit is contained in:
1 parent
941b51ebcf
commit
2101e19e31
1 file changed
+2
@@ -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]");
|
||||
|
||||
Reference in new issue
Block a user