What version of lego are you using? It seems that in some versions, the --tls
option expects an argument, and may interpret the next option --email
as that argument instead of parsing it as an option itself.
I guess you might be following a tutorial for a different version of lego than the one you have installed?