Merge pull request #180 from an-tao/dev

Fix a bug of the drogon_ctl command
This commit is contained in:
An Tao 2019-06-26 19:58:43 +08:00 committed by GitHub
commit 16e1868607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]); args.push_back(argv[i]);
} }
for (auto &arg : args) if (args.size() > 0)
{ {
auto &arg = args[0];
if (arg == "-h" || arg == "--help") if (arg == "-h" || arg == "--help")
{ {
arg = "help"; arg = "help";