Skip to content

Commit

Permalink
Disallow specifying a pattern when processing a single file.
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed Nov 5, 2016
1 parent ed66276 commit ab1701a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ContentSync/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ab1701a

Please sign in to comment.