From ab1701ae3cf3ff495da7242aea2c61b129bcb9ba Mon Sep 17 00:00:00 2001 From: Kirill Osenkov Date: Fri, 4 Nov 2016 22:56:17 -0700 Subject: [PATCH] Disallow specifying a pattern when processing a single file. --- src/ContentSync/Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ContentSync/Program.cs b/src/ContentSync/Program.cs index f8b0c84..32e9cf4 100644 --- a/src/ContentSync/Program.cs +++ b/src/ContentSync/Program.cs @@ -59,6 +59,12 @@ private static int Main(string[] args) destination = Path.GetFullPath(destination); } + if (arguments.Pattern != "*") + { + Log.WriteError($"The pattern cannot be specified when processing a single file."); + return 4; + } + Sync.Files(source, destination, arguments); return 0; }