Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions ImageStitcher/ImageStitcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<None Include="..\.github\**\*" Link=".github\%(RecursiveDir)%(Filename)%(Extension)" />
<None Include="..\Test\**\*" Link="Test\%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion ImageStitcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
if (args is [])
{
// If no args, print help
result = await Cli.RunAsync<ImageStitcherCommand>(["-h"]).ConfigureAwait(false);
result = await Cli.RunAsync<ImageStitcherCommand>("-h").ConfigureAwait(false);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion ImageStitcher/Stitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ await Parallel.ForEachAsync(subfolders, token, async (subfolder, cancellationTok
public async ValueTask StitchFiles(ImageStitcherCommand command, FileInfo[] files, string outputName, CancellationToken token)
{
using MagickImageCollection original = new();
if (command.Reverse || command.Direction is Direction.Horizontal)
if (command is { Reverse: true, Direction: Direction.Vertical } or { Reverse: false, Direction: Direction.Horizontal })
{
for (int i = files.Length - 1; i >= 0; i--)
{
Expand Down