Describe the bug
A short description of the bug.
127.0.0.1:6379> FUNCTION LOAD Lua mylib "redis.register_function('myfunc', function(keys, args) return args[1] end)" replace description desc
(error) ERR Unknown option given: redis.register_function('myfunc', function(keys, args) return args[1] end)
127.0.0.1:6379>
see image above of command hint To reproduce
Steps to reproduce the behavior and/or a minimal code sample.
Expected behavior
A description of what you expected to happen.
Additional information
Any additional information that is relevant to the problem.
Comment From: oranagra
@leonchen83 the redis-cli tips are misleading, they stop being updated when there are optional argument. https://github.com/redis/redis/pull/9303 syntax for FUNCTION LOAD is that the code is always the last argument