diff options
| author | A2va <[email protected]> | 2022-12-03 14:09:34 +0100 |
|---|---|---|
| committer | A2va <[email protected]> | 2022-12-03 14:09:34 +0100 |
| commit | dedf2caa2d69e323e05b7bc1a6a1198adbe40d0d (patch) | |
| tree | 1788fd5ad380942542cb29c4aabec71e40dbeccc /xmake/plugins/format/main.lua | |
| parent | 8096de60f4aac3fa3fa69de9e399f3a148203b4a (diff) | |
Header files fix
Rename argument
Diffstat (limited to 'xmake/plugins/format/main.lua')
| -rw-r--r-- | xmake/plugins/format/main.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/plugins/format/main.lua b/xmake/plugins/format/main.lua index add8a7663..228e46517 100644 --- a/xmake/plugins/format/main.lua +++ b/xmake/plugins/format/main.lua @@ -72,7 +72,7 @@ function main() table.insert(argv, "-i") -- set file to format - if option.get("file") then + if option.get("files") then -- list of files/path to format local files = option.get("file"):split(" ") for _, f in ipairs(files) do @@ -86,11 +86,11 @@ function main() for targetname, target in pairs(project.targets()) do -- source files for _, source in ipairs(target:sourcefiles()) do - table.insert(argv, path.join(projectdir,source)) + table.insert(argv, path.join(projectdir, source)) end -- header files - for _, header in ipairs(target:sourcefiles()) do - table.insert(argv, path.join(projectdir,header)) + for _, header in ipairs(target:headerfiles()) do + table.insert(argv, path.join(projectdir, header)) end end end |
