-c option may be given relative or absolute path to configuration file; file references in this file will be relative to its position
This commit is contained in:
parent
e680b44435
commit
226d3d372c
8
ldoc.lua
8
ldoc.lua
|
@ -184,8 +184,12 @@ local abspath = tools.abspath
|
|||
-- a special case: 'ldoc .' can get all its parameters from config.ld
|
||||
if args.file == '.' then
|
||||
local err
|
||||
config_dir,err = read_ldoc_config('./'..args.config)
|
||||
if err then quit("no "..quote(args.config).." found here") end
|
||||
config_dir,err = read_ldoc_config(args.config)
|
||||
if err then quit("no "..quote(args.config).." found") end
|
||||
local config_path = path.dirname(args.config)
|
||||
if config_path ~= '' then
|
||||
lfs.chdir(config_path)
|
||||
end
|
||||
config_is_read = true
|
||||
args.file = ldoc.file or '.'
|
||||
if args.file == '.' then
|
||||
|
|
Loading…
Reference in New Issue