mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-12 17:55:33 +00:00
make import flag optional (#255)
This commit is contained in:
parent
dae234dc5a
commit
5fd54b5656
@ -76,7 +76,7 @@ object AppOps {
|
|||||||
|
|
||||||
def importOpts[F[_]: Monad: Files]: Opts[F[ValidatedNec[String, List[Path]]]] =
|
def importOpts[F[_]: Monad: Files]: Opts[F[ValidatedNec[String, List[Path]]]] =
|
||||||
Opts
|
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 =>
|
.map { ps =>
|
||||||
val checked: List[F[ValidatedNec[String, Path]]] = ps.toList.map { pStr =>
|
val checked: List[F[ValidatedNec[String, Path]]] = ps.toList.map { pStr =>
|
||||||
val p = Path(pStr)
|
val p = Path(pStr)
|
||||||
|
Loading…
Reference in New Issue
Block a user