summaryrefslogtreecommitdiff
path: root/xmake/plugins/format/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-19 22:48:16 +0800
committerruki <[email protected]>2025-11-19 22:48:16 +0800
commit1b564b63347ad5add8208d69ca6cdc04faedde52 (patch)
treeb76d6253efd9828559e414c6e817516273bd26db /xmake/plugins/format/xmake.lua
parent77f00b9a773f3e26cfc32fd18502789018807b91 (diff)
improve xmake format
Diffstat (limited to 'xmake/plugins/format/xmake.lua')
-rw-r--r--xmake/plugins/format/xmake.lua2
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.",