summaryrefslogtreecommitdiff
path: root/xmake/plugins/format/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/format/xmake.lua')
-rw-r--r--xmake/plugins/format/xmake.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/xmake/plugins/format/xmake.lua b/xmake/plugins/format/xmake.lua
index 5cb1c913e..16710524a 100644
--- a/xmake/plugins/format/xmake.lua
+++ b/xmake/plugins/format/xmake.lua
@@ -18,26 +18,16 @@
-- @file format.lua
--
--- define task
task("format")
-
- -- set category
set_category("plugin")
-
- -- on run
on_run("main")
-
- -- set menu
set_menu {
- -- usage
usage = "xmake format [options] [arguments]",
- -- description
description = "Format the current project.",
- -- options
options = {
{'s', "style", "kv", nil, "Set the path of .clang-format file, a coding style"..
"(LLVM, Google, Chromium, Mozilla, WebKit) or key value string" },
- {nil, "create-style", "kv", nil, "Create a .clang-format file from a coding style" },
+ {nil, "create", "k", nil, "Create a .clang-format file from a coding style" },
{'f', "file", "v", "*.cpp *.h *.hpp", "Set file path or glob pattern"}
}
}