From 3bac3b06c40852306fec5991e64d82c875487ba2 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Wed, 24 Feb 2021 19:14:41 +0100 Subject: [PATCH] Fix `-o` flag processing --- sdg-cli/src/main/java/es/upv/mist/slicing/cli/Slicer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdg-cli/src/main/java/es/upv/mist/slicing/cli/Slicer.java b/sdg-cli/src/main/java/es/upv/mist/slicing/cli/Slicer.java index 1ad2452..6035f2d 100644 --- a/sdg-cli/src/main/java/es/upv/mist/slicing/cli/Slicer.java +++ b/sdg-cli/src/main/java/es/upv/mist/slicing/cli/Slicer.java @@ -139,7 +139,7 @@ public class Slicer { } if (cliOpts.hasOption('o')) - outputDir = (File) cliOpts.getParsedOptionValue("o"); + outputDir = new File(cliOpts.getOptionValue("o")); if (cliOpts.hasOption('i')) { for (String str : cliOpts.getOptionValues('i')) { -- GitLab