Reffering that answer I was trying to use OptionParser to parse rake arguments. I simplified example from there and I had to add two ARGV.shi
OptionParser
rake
ARGV.shi
You have to put a '=' between -u and foo:
-u
foo
$ rake user:create -- -u=foo
Instead of:
$ rake user:create -- -u foo