make import flag optional (#255)

This commit is contained in:
Dima 2021-08-27 16:23:52 +03:00 committed by GitHub
parent dae234dc5a
commit 5fd54b5656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)