From 4f224003fd078dfeb48fa20080080eaa5fc41571 Mon Sep 17 00:00:00 2001 From: Hayodea Hakol Date: Tue, 7 Jan 2025 14:14:57 -0400 Subject: [PATCH] Main: Invoke parser and print out results --- main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d4c8d12..1a069be 100644 --- a/main.cpp +++ b/main.cpp @@ -26,12 +26,19 @@ try { } options.dumpOptions(); - DeviceManager::getInstance().handleDeviceSpecifiers(options); + DeviceManager::getInstance().collateAllDeviceSpecs(options); + DeviceManager::getInstance().parseAllDeviceSpecs(); + std::cout << DeviceManager::printDeviceSpecs() << std::endl; +} +catch (const std::exception& e) { + std::cerr << "Exception occurred: " << e.what() << std::endl; + return EXIT_FAILURE; } catch (...) { std::cerr << "Unknown exception occurred" << std::endl; return EXIT_FAILURE; } + std::cout << "Exiting normally" << std::endl; return 0; }