diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in index fb5f2946192802950fdd84b783761eba306d6d93..e11aaba5eafcb5499fd2012f6e370701a70d7d7c 100755 --- a/extra/dist/tarantoolctl.in +++ b/extra/dist/tarantoolctl.in @@ -674,12 +674,12 @@ local commands = setmetatable({ }) local usage = function() - local local_tbl = fun.iter(commands):reduce(function(name, cmd) + local local_tbl = fun.iter(commands):filter(function(name, cmd) return cmd.process == process_local end):map(function(name, cmd) return name end):totable() table.sort(local_tbl); local_tbl = table.concat(local_tbl, '|') - local remote_tbl = fun.iter(commands):reduce(function(name, cmd) + local remote_tbl = fun.iter(commands):filter(function(name, cmd) return cmd.process == process_remote end):map(function(name, cmd) return name end):totable() table.sort(remote_tbl); remote_tbl = table.concat(remote_tbl, '|')