summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-05-11 12:30:37 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-05-12 11:59:09 +0100
commit57ca910dbceb22c414902e9bd3d409f1668f1463 (patch)
tree18e0061febaa30afc6a609bef446b298d870c531
parentaaa1e2b0ec58370d9ffaef0002e5f68c65185e30 (diff)
downloadefl-57ca910dbceb22c414902e9bd3d409f1668f1463.tar.gz
docgen: allow multiple paths to be scanned when provided
-rw-r--r--gendoc.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/gendoc.lua b/gendoc.lua
index 4abb298fee..8b8b710f75 100644
--- a/gendoc.lua
+++ b/gendoc.lua
@@ -1741,13 +1741,15 @@ getopt.parse {
end
global_opts.doc_root = path_join(opts["r"],
nspace_to_path(global_opts.root_nspace))
- if not args[1] then
+ if #args == 0 then
if not eolian.system_directory_scan() then
error("failed scanning system directory")
end
else
- if not eolian.directory_scan(args[1]) then
- error("failed scanning directory: " .. args[1])
+ for i, p in ipairs(args) do
+ if not eolian.directory_scan(p) then
+ error("failed scanning directory: " .. p)
+ end
end
end
if not eolian.all_eot_files_parse() then