summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
author Alan Stokes <alanstokes@google.com> 2022-01-10 17:59:01 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-01-11 17:21:29 +0000
commitd98612e11ce1da0c29457cf360f81ff2eb2d520e (patch)
tree3f306356d4875fe7b35e170ec266458e7aff5a13 /compiler/common_compiler_test.cc
parent6f572b7adbbfca19f978cb188f46fb8ad9d880de (diff)
Fail if given an unrecognised option.
I renamed UsageError to UsageMsg because it just logs, unlike ArgumentError which exits the process with an appropriate error code. Then replaced one case of UsageMsg with ArgumentError where we should be failing hard. Also inlined OptionsHelp so the usage an be seen in one place in the code. Test: odrefresh --foo --compile Change-Id: If01902ebe652c20949a454e64849e7d39c2b8748
Diffstat (limited to 'compiler/common_compiler_test.cc')
0 files changed, 0 insertions, 0 deletions