[WITH PATCH] Better error message with the --local option
For junior contributor:
When not specifying a directory as argument of the command line option --local, the current message is "invalid target".
I propose to replace it with something more informative for the user:
"invalid target - expected a directory".