commit | d98612e11ce1da0c29457cf360f81ff2eb2d520e | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Mon Jan 10 17:59:01 2022 +0000 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Tue Jan 11 17:21:29 2022 +0000 |
tree | 3f306356d4875fe7b35e170ec266458e7aff5a13 | |
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