From d9a74a131b557e435e0d2b7ed88268018e95805c Mon Sep 17 00:00:00 2001 From: Raitis Veinbahs Date: Fri, 17 Jan 2025 10:13:52 +0200 Subject: [PATCH] fix: Fix argument order with --topleft (DEV-4481) (#324) --- src/main/scala/swiss/dasch/domain/SipiClient.scala | 2 +- src/test/scala/swiss/dasch/domain/SipiCommandSpec.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/swiss/dasch/domain/SipiClient.scala b/src/main/scala/swiss/dasch/domain/SipiClient.scala index ad4f41ff..9a786a10 100644 --- a/src/main/scala/swiss/dasch/domain/SipiClient.scala +++ b/src/main/scala/swiss/dasch/domain/SipiClient.scala @@ -36,7 +36,7 @@ object SipiCommand { (for { abs1 <- fileIn.toAbsolutePath abs2 <- fileOut.toAbsolutePath - } yield List(flag(), "--topleft", outputFormat.toCliString, abs1.toString, abs2.toString)).orDie + } yield List(flag(), outputFormat.toCliString, "--topleft", abs1.toString, abs2.toString)).orDie } /** diff --git a/src/test/scala/swiss/dasch/domain/SipiCommandSpec.scala b/src/test/scala/swiss/dasch/domain/SipiCommandSpec.scala index eee961fe..def88e2f 100644 --- a/src/test/scala/swiss/dasch/domain/SipiCommandSpec.scala +++ b/src/test/scala/swiss/dasch/domain/SipiCommandSpec.scala @@ -18,7 +18,7 @@ object SipiCommandSpec extends ZIOSpecDefault { check(Gen.fromIterable(SipiImageFormat.all)) { format => for { cmd <- FormatArgument(format, Path("/tmp/example"), Path("/tmp/example2")).render() - } yield assertTrue(cmd == List("--format", "--topleft", format.toCliString, "/tmp/example", "/tmp/example2")) + } yield assertTrue(cmd == List("--format", format.toCliString, "--topleft", "/tmp/example", "/tmp/example2")) } }, test("should assemble query command") {