Commit cfb26dea authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Allow comma-separated list of paths for --images.

So it behaves the same as other options that accept multiple paths.
parent e770a60b
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -443,15 +443,14 @@ module JsDuck
          @source = false
        end

        opts.on('--images=PATH',
          "Path for images referenced by {@img} tag.",
          "",
          "Several paths can be specified by using the option",
          "multiple times.  This option only applies to {@img}",
          "tags used in API (classes/members) documentation.",
          "Images used in guides must be located inside the",
          "directory of the specific guide.") do |path|
          @images << canonical(path)
        opts.on('--images=PATH1,PATH2', Array,
          "Paths for images referenced by {@img} tag.",
          "",
          "This option only applies to {@img} tags used in",
          "API (classes/members) documentation.  Images used",
          "in guides must be located inside the directory of",
          "the specific guide.") do |paths|
          @images += paths.map {|p| canonical(p) }
        end

        opts.on('--tests',