From 5fd54b5656d3e0d1101ac0ec26195d437397e0a5 Mon Sep 17 00:00:00 2001 From: Dima Date: Fri, 27 Aug 2021 16:23:52 +0300 Subject: [PATCH] make import flag optional (#255) --- cli/src/main/scala/aqua/AppOps.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main/scala/aqua/AppOps.scala b/cli/src/main/scala/aqua/AppOps.scala index 385d9e99..7c220f95 100644 --- a/cli/src/main/scala/aqua/AppOps.scala +++ b/cli/src/main/scala/aqua/AppOps.scala @@ -76,7 +76,7 @@ object AppOps { def importOpts[F[_]: Monad: Files]: Opts[F[ValidatedNec[String, List[Path]]]] = Opts - .options[String]("import", "Path to the directory to import from", "m") + .options[String]("import", "Path to the directory to import from", "m").orEmpty .map { ps => val checked: List[F[ValidatedNec[String, Path]]] = ps.toList.map { pStr => val p = Path(pStr)