diff options
| author | 2022-01-10 17:59:01 +0000 | |
|---|---|---|
| committer | 2022-01-11 17:21:29 +0000 | |
| commit | d98612e11ce1da0c29457cf360f81ff2eb2d520e (patch) | |
| tree | 3f306356d4875fe7b35e170ec266458e7aff5a13 /compiler/common_compiler_test.cc | |
| parent | 6f572b7adbbfca19f978cb188f46fb8ad9d880de (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