mv command confuses directory name with command option
Solution 1:
This is a standard issue with filenames/directories starting with less conventional symbols. Your problem is that mv is treating --pycache-- as long option name (since it starts with --, there are also short options, they start with -). Please see manpage for getopt for details about long and short options.
The standard workaround in this situation is to use an empty double dash -- before all argument, which tells the command (mv in your case, but will work with others, cp for example) to stop treating what follows as options and treat it as arguments.
Thus, your command will become:
$ mv -- --pycache--/ __pycache__
and won't fail.
Solution 2:
Your first character -
is ambiguous for the mv
command (or rather, it unambiguously means that an option name follows).
Try this instead:
mv ./--ppycache-- __pycache__
Source: linux.about.com