fix -link parsing
Merge pull request #2870 from dotcloud/fix-links-parsing

fix -link parsing