drogon/drogon_ctl/main.cc

25 lines
344 B
C++
Executable File

#include "cmd.h"
#include <string>
#include <vector>
#include <iostream>
int main(int argc, char* argv[])
{
if(argc<2)
{
std::cout<<"usage:"<<std::endl;
return 0;
}
std::vector<std::string> args;
for(int i=1;i<argc;i++)
{
args.push_back(argv[i]);
}
exeCommand(args);
return 0;
}