main: Gh copilot insists on this formatting

This commit is contained in:
2025-01-05 14:01:16 -04:00
parent e51a6bb729
commit 77e6eca091
+6 -5
View File
@@ -2,20 +2,21 @@
#include <exception>
#include <opts.h>
#include <mind.h>
#include "deviceManager/deviceManager.h"
int main(int argc, char **argv)
{
try {
OptionParser options;
hk::Mind mind;
hk::Mind mind;
std::cout <<PACKAGE_NAME <<" " <<PACKAGE_VERSION <<std::endl;
std::cout << PACKAGE_NAME << " " << PACKAGE_VERSION << std::endl;
try {
options.parseArguments(argc, argv);
}
catch (const std::invalid_argument& e) {
std::cerr << e.what() <<'\n' << options.getUsage() <<'\n';
std::cerr << e.what() << '\n' << options.getUsage() << '\n';
return EXIT_FAILURE;
}
@@ -26,9 +27,9 @@ try {
options.dumpOptions();
}
catch (...) {
std::cerr << "Unknown exception occurred" <<std::endl;
std::cerr << "Unknown exception occurred" << std::endl;
return EXIT_FAILURE;
}
return 0;
return 0;
}