mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-02-08 14:41:39 +00:00
33 lines
587 B
C++
33 lines
587 B
C++
/*
|
|
** EPITECH PROJECT, 2021
|
|
** Bomberman
|
|
** File description:
|
|
** main
|
|
*/
|
|
|
|
|
|
#include <iostream>
|
|
#include "Runner/Runner.hpp"
|
|
|
|
void usage(const std::string &bin)
|
|
{
|
|
std::cout << "Bomberman." << std::endl
|
|
<< "\tUsage: " << bin << " [options]" << std::endl
|
|
<< "Options:" << std::endl
|
|
<< "\t-h:\tPrint this help message" << std::endl;
|
|
}
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
if (argc == 2 && std::string(argv[1]) == "-h") {
|
|
usage(argv[0]);
|
|
return 1;
|
|
}
|
|
try {
|
|
return BBM::Runner::run();
|
|
} catch (const std::exception &ex) {
|
|
std::cerr << ex.what() << std::endl;
|
|
return 84;
|
|
}
|
|
}
|