Fix a bug of the drogon_ctl command

This commit is contained in:
antao 2019-06-26 17:58:25 +08:00
parent 4db148a5af
commit c2eac3297c
1 changed files with 2 additions and 1 deletions

View File

@ -31,8 +31,9 @@ int main(int argc, char *argv[])
{
args.push_back(argv[i]);
}
for (auto &arg : args)
if (args.size() > 0)
{
auto &arg = args[0];
if (arg == "-h" || arg == "--help")
{
arg = "help";