main: Gh copilot insists on this formatting
This commit is contained in:
@@ -2,20 +2,21 @@
|
|||||||
#include <exception>
|
#include <exception>
|
||||||
#include <opts.h>
|
#include <opts.h>
|
||||||
#include <mind.h>
|
#include <mind.h>
|
||||||
|
#include "deviceManager/deviceManager.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
OptionParser options;
|
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 {
|
try {
|
||||||
options.parseArguments(argc, argv);
|
options.parseArguments(argc, argv);
|
||||||
}
|
}
|
||||||
catch (const std::invalid_argument& e) {
|
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;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,9 +27,9 @@ try {
|
|||||||
options.dumpOptions();
|
options.dumpOptions();
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
std::cerr << "Unknown exception occurred" <<std::endl;
|
std::cerr << "Unknown exception occurred" << std::endl;
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user