You've specified s%
- defining an option that specifies hash entries. That implies a form key=value
for each argument to the option. But you've only specified -E
. The error message is about the missing =value
part, not the leading -
.
Perhaps use s@
instead to ingest a set of simple options? Or give an empty value using "-E="
if you need to separate the keys and values before passing them to ftp.