File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ defmodule ExDoc.CLI do
23
23
] ,
24
24
switches: [
25
25
language: :string ,
26
+ paths: :keep ,
26
27
proglang: :string ,
27
28
source_ref: :string ,
28
29
version: :boolean
@@ -45,8 +46,9 @@ defmodule ExDoc.CLI do
45
46
46
47
Code . prepend_path ( source_beam )
47
48
48
- if opts [ :prepend_path ] do
49
- Code . prepend_path ( opts [ :prepend_path ] )
49
+ for path <- Keyword . get_values ( opts , :paths ) ,
50
+ path <- Path . wildcard ( path ) do
51
+ Code . prepend_path ( path )
50
52
end
51
53
52
54
opts =
@@ -146,7 +148,9 @@ defmodule ExDoc.CLI do
146
148
See "Custom config" section below for more information.
147
149
-f, --formatter Docs formatter to use (html or epub), default: "html"
148
150
-p, --homepage-url URL to link to for the site name
149
- --prepend-path Prepends the given path to Erlang code path
151
+ --paths Prepends the given path to Erlang code path. The path might contain a glob
152
+ pattern but in that case remember to quote it: --paths "_build/dev/lib/*/ebin".
153
+ This option can be given multiple times
150
154
--language Identify the primary language of the documents, its value must be
151
155
a valid [BCP 47](https://tools.ietf.org/html/bcp47) language tag, default: "en"
152
156
-l, --logo Path to the image logo of the project (only PNG or JPEG accepted)
You can’t perform that action at this time.
0 commit comments