diff --git a/drogon_ctl/main.cc b/drogon_ctl/main.cc index beca6bec..b4f3c4d3 100755 --- a/drogon_ctl/main.cc +++ b/drogon_ctl/main.cc @@ -1,7 +1,7 @@ /** * - * main.cc - * An Tao + * @file main.cc + * @author An Tao * * Copyright 2018, An Tao. All rights reserved. * https://github.com/an-tao/drogon @@ -19,13 +19,13 @@ int main(int argc, char *argv[]) { + std::vector args; if (argc < 2) { - std::vector args = {"help"}; + args = {"help"}; exeCommand(args); return 0; } - std::vector args; for (int i = 1; i < argc; ++i) { args.push_back(argv[i]);