diff options
| author | ruki <[email protected]> | 2023-02-01 00:48:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-01 00:48:23 +0800 |
| commit | c638e5b6111c919b46a676f7eefcc7fead324874 (patch) | |
| tree | 6b090579059981912438ee4c1ab8ca21e823819f /xmake/plugins/check/xmake.lua | |
| parent | 4a9e0dffebbd750cf0f0fa24fbed2d5307c67b90 (diff) | |
show checkers list
Diffstat (limited to 'xmake/plugins/check/xmake.lua')
| -rw-r--r-- | xmake/plugins/check/xmake.lua | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/xmake/plugins/check/xmake.lua b/xmake/plugins/check/xmake.lua index 38fe742ba..aa3d8ab67 100644 --- a/xmake/plugins/check/xmake.lua +++ b/xmake/plugins/check/xmake.lua @@ -27,8 +27,20 @@ task("check") options = { {'l', "list", "k", nil, "Show all supported checkers list."}, {nil, "info", "kv", nil, "Show the given checker information."}, - {nil, "level", "kv", "all", "Just show information for the given level.", values = {"warn", "error", "all"}}, - {nil, "checkers", "vs", nil, "Use the given checkers to check project."} + {nil, "level", "kv", "all", "Just show information for the given level.", values = {"warning", "error", "all"}}, + {nil, "checkers", "v", "api", "Use the given checkers to check project.", + "e.g.", + " - xmake check api", + " - xmake check --level=error api.target", + " - xmake check api.target.languages", + "", + "The supported checkers list:", + values = function (complete, opt) + return import("plugins.check.checker", {rootdir = os.programdir()}).complete(complete, opt) + end}, + {nil, "arguments", "vs", nil, "Set the checker arguments.", + "e.g.", + " - xmake check clang.tidy [arguments]"} } } |
