DocOpt.jl icon indicating copy to clipboard operation
DocOpt.jl copied to clipboard

List of arguments followed by another list

Open juliohm opened this issue 5 years ago • 1 comments

Tthe following usage is not parsed correctly:

Usage:
  main.jl --files <fnames>... --outputdir <outdir>

I had to flip the order to make it work:

Usage:
  main.jl --outputdir <outdir> --files <fnames>...

juliohm avatar Jun 15 '20 17:06 juliohm

Actually, it doesn't work. The list of names is flipped during usage:

julia --project main.jl --files foo bar --outputdir baz

creates files = ["bar", "baz"] as opposed to files = ["foo", "bar"].

juliohm avatar Jun 15 '20 17:06 juliohm