From 57ca910dbceb22c414902e9bd3d409f1668f1463 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Wed, 11 May 2016 12:30:37 +0100 Subject: [PATCH] docgen: allow multiple paths to be scanned when provided --- gendoc.lua | 8 +++++--- 1 file 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