[dsymutil] Print warning/error for unknown/missing arguments.
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 16 Oct 2019 21:48:41 +0000 (21:48 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 16 Oct 2019 21:48:41 +0000 (21:48 +0000)
commit8cdc842c51626b94fc20af604f640f6f195eeadb
treeec1d9e999e948f80688b3801fac973e1b6d84040
parent6d1891c508fecf189d1d76b43740b144b91aae23
[dsymutil] Print warning/error for unknown/missing arguments.

After changing dsymutil to use libOption, we lost error reporting for
missing required arguments (input files). Additionally, we stopped
complaining about unknown arguments. This patch fixes both and adds a
test.

llvm-svn: 375044
llvm/test/tools/dsymutil/cmdline.test
llvm/tools/dsymutil/dsymutil.cpp