diff options
| author | ruki <[email protected]> | 2026-06-18 08:59:11 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-18 08:59:11 +0800 |
| commit | 9b8df1e3c6bf7aa841c3c62f8f80d5016690367b (patch) | |
| tree | 337586fdbc65cf15d539be45899fb8c61020ef62 /xmake/plugins/format/xmake.lua | |
| parent | ba2df770b8430a8f8e593d34dc05de051a59a1bd (diff) | |
| parent | 02a69e7a3e0442a750c33eae77dc5feb2e5ff655 (diff) | |
Merge pull request #7607 from xmake-io/targets
Support multiple targets
Diffstat (limited to 'xmake/plugins/format/xmake.lua')
| -rw-r--r-- | xmake/plugins/format/xmake.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/plugins/format/xmake.lua b/xmake/plugins/format/xmake.lua index d9e34572b..5de1b8120 100644 --- a/xmake/plugins/format/xmake.lua +++ b/xmake/plugins/format/xmake.lua @@ -45,7 +45,9 @@ task("format") " - xmake format --files='src/**.c|excluded_file.c'", " - xmake format --files='src/main.c" .. path.envsep() .. "src/test.c'" }, {}, - {nil, "target", "v", nil, "The target name. It will format all default targets if this parameter is not specified." + {nil, "targets", "vs", nil, "The target names. It will format all default targets if this parameter is not specified.", + "e.g.", + " xmake format target1 target2 ..." , values = function (complete, opt) return import("private.utils.complete_helper.targets")(complete, opt) end } } } |
