diff options
Diffstat (limited to 'xmake/plugins/plugin/xmake.lua')
| -rw-r--r-- | xmake/plugins/plugin/xmake.lua | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/xmake/plugins/plugin/xmake.lua b/xmake/plugins/plugin/xmake.lua index 6089a4f24..97e18fc0b 100644 --- a/xmake/plugins/plugin/xmake.lua +++ b/xmake/plugins/plugin/xmake.lua @@ -18,28 +18,19 @@ -- @file plugin.lua -- --- define task task("plugin") - - -- set category set_category("plugin") - - -- on run on_run("main") - - -- set menu set_menu { - - -- usage - usage = "xmake plugin [options]" - - -- description - , description = "Manage plugins of xmake." - - -- options - , options = - { - {'i', "install", "k", nil, "Install all plugins of the official remote repository." } - , {'c', "clear", "k", nil, "Clear all installed plugins." } + usage = "xmake plugin [options]", + description = "Manage plugins of xmake.", + options = { + {'i', "install", "k", nil, "Install plugins." }, + {'u', "update", "k", nil, "Update plugins." }, + {'c', "clear", "k", nil, "Clear all installed plugins." }, + {nil, "plugins", "v", nil, "The plugins path or url.", + "e.g.", + " $ xmake plugin --install https://github.com/xmake-io/xmake-plugins", + " $ xmake plugin --update"} } } |
