From 05205b0954b4b7ee3667f7c17bbb7d37b4040404 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Thu, 19 May 2022 17:05:46 +0100 Subject: fix(cli): pass data path to PAGOdA's properties This is not the ideal way to deal with this an a more general integration solution should be used. Regardless, it works for now. --- src/main/scala/uk/ac/ox/cs/acqua/Main.scala | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/scala/uk/ac/ox/cs/acqua/Main.scala') diff --git a/src/main/scala/uk/ac/ox/cs/acqua/Main.scala b/src/main/scala/uk/ac/ox/cs/acqua/Main.scala index e4bdc87..b16f03a 100644 --- a/src/main/scala/uk/ac/ox/cs/acqua/Main.scala +++ b/src/main/scala/uk/ac/ox/cs/acqua/Main.scala @@ -40,6 +40,13 @@ object Acqua extends App { val ontology = Ontology(ontopath, datapath).normalize(new Normalizer) val properties = new PagodaProperties() + /* TODO: find a better way to integrate CLI options from different + * tools. A good idea would be to have [[util.AcquaConfig]] handle the + * CLI and have methods to convert it into other "config" classes to + * use with tool-specific interfaces. + */ + if (config contains 'pagodata) + properties setDataPath config('pagodata).get[String] val performMultiStages = true val considerEqualities = true -- cgit v1.2.3