Skip to content

Commit

Permalink
Merge pull request #158 from ams-tschoening/import_path_compat
Browse files Browse the repository at this point in the history
Allow "import-path" more than once to not necessarily use OS-specific…
  • Loading branch information
GreyCat authored Apr 5, 2019
2 parents 0221a5a + a7d5e44 commit 809c0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jvm/src/main/scala/io/kaitai/struct/JavaMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object JavaMain {
} text("output directory (filenames will be auto-generated)")

val importPathExample = List("<directory>", "<directory>", "...").mkString(File.pathSeparator)
opt[String]('I', "import-path") valueName(importPathExample) action { (x, c) =>
opt[String]('I', "import-path") optional() unbounded() valueName(importPathExample) action { (x, c) =>
c.copy(importPaths = c.importPaths ++ x.split(File.pathSeparatorChar))
} text(".ksy library search path(s) for imports (see also KSPATH env variable)")

Expand Down

0 comments on commit 809c0bc

Please sign in to comment.