# RUN: env LINK="-help -foo" lld -flavor link2 > %t1.log 2> %t2.log
# RUN: FileCheck -check-prefix=STDOUT %s < %t1.log
# RUN: FileCheck -check-prefix=STDERR %s < %t2.log
STDOUT: OVERVIEW: LLVM Linker
STDERR: unknown argument: -foo