Fix a bug of the drogon_ctl command
This commit is contained in:
parent
4db148a5af
commit
c2eac3297c
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue