diff options
| author | ruki <[email protected]> | 2025-11-19 22:48:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-19 22:48:16 +0800 |
| commit | 1b564b63347ad5add8208d69ca6cdc04faedde52 (patch) | |
| tree | b76d6253efd9828559e414c6e817516273bd26db /xmake/plugins/format/xmake.lua | |
| parent | 77f00b9a773f3e26cfc32fd18502789018807b91 (diff) | |
improve xmake format
Diffstat (limited to 'xmake/plugins/format/xmake.lua')
| -rw-r--r-- | xmake/plugins/format/xmake.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/plugins/format/xmake.lua b/xmake/plugins/format/xmake.lua index 1b31ff9b3..d9e34572b 100644 --- a/xmake/plugins/format/xmake.lua +++ b/xmake/plugins/format/xmake.lua @@ -30,6 +30,8 @@ task("format") {nil, "create", "k", nil, "Create a .clang-format file from a coding style"}, {'n', "dry-run", "k", nil, "Do not make any changes, just show the files that would be formatted."}, {'e', "error", "k", nil, "If set, changes formatting warnings to errors."}, + {'j', "jobs", "kv", tostring(os.default_njob()), + "Set the number of parallel format jobs."}, {'a', "all", "k", nil, "Format all targets."}, {'g', "group", "kv", nil, "Format all targets of the given group. It support path pattern matching.", "e.g.", |
