blob: 059728b6d18f0623d0fc90e612336a1c88e3da3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# include <benoit.hh>
# include <fmt/core.h>
void benoit::arghandl(int const & argc,char const * * & argv) {
std::string const funcname = "benoit::arghandl(int const &,char const * * &)"s;
this->notiffunc(funcname);
if(argc < 0x2) {
return;
}
for(int pos = 0x1;(pos < argc);++pos) {
std::string arg = argv[pos];
if(arg == "--help") {
this->print(fmt::format("benoit {}",this->ver));
this->exit(EXIT_SUCCESS);
}
}
}
|