1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

do not use NOLINT comments

add a note about missing execptin handling in main
This commit is contained in:
ClausKlein 2021-02-18 17:32:28 +01:00
parent d9210698c9
commit 268a860b8f

View file

@ -6,8 +6,7 @@
#include <string>
#include <unordered_map>
// NOLINTNEXTLINE(modernize-use-trailing-return-type)
int main(int argc, char** argv) {
auto main(int argc, char** argv) -> int {
const std::unordered_map<std::string, greeter::LanguageCode> languages{
{"en", greeter::LanguageCode::EN},
{"de", greeter::LanguageCode::DE},
@ -29,7 +28,7 @@ int main(int argc, char** argv) {
;
// clang-format on
auto result = options.parse(argc, argv);
auto result = options.parse(argc, argv); // TODO: may throw! CK
if (result["help"].as<bool>()) {
std::cout << options.help() << std::endl;