diff options
| author | ruki <[email protected]> | 2016-02-25 09:39:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-25 09:39:26 +0800 |
| commit | 939effc6597b544d498d0644f7b48cb121f54aae (patch) | |
| tree | a8dc2b24ff083e018074acace394d01f8d73753a /xmake/core/base/task.lua | |
| parent | a077113ea61e7544e8f702104a0f3ca7535a72cd (diff) | |
filter menu description for tasks
Diffstat (limited to 'xmake/core/base/task.lua')
| -rw-r--r-- | xmake/core/base/task.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua index bbf12d8a2..6eba98114 100644 --- a/xmake/core/base/task.lua +++ b/xmake/core/base/task.lua @@ -188,6 +188,19 @@ function task.menu() if type(default) == "string" then option[4] = interp:filter():handle(default) end + + -- filter description + for i = 5, 64 do + + -- the description, @note some option may be nil + local description = option[i] + if not description then break end + + -- the description is string? + if type(description) == "string" then + option[i] = interp:filter():handle(description) + end + end end end |
