Pkg add several packages -- syntax and error message

This is merely a suggestion for a better error message. It took me quite a while to figure out that I used the wrong syntax while trying to add several packages like below. I thought I had messed up the package installation for ForwardDiff and tried to resolve that, but it turned out that I had just added unacceptable commas

Wrong syntax:

(v0.7) pkg> add ForwardDiff, ReverseDiff, ValueHistories, JLD, Parameters
   Cloning git-repo `ForwardDiff,`
ERROR: failed to clone from ForwardDiff,, error: GitError(Code:ERROR, Class:Net, unsupported URL protocol)

Correct syntax:

(v0.7) pkg> add ForwardDiff ReverseDiff ValueHistories JLD Parameters
1 Like