fix -link parsing

ping @crosbymichael @shykes