diff --git a/runner/cmd-args.cpp b/runner/cmd-args.cpp index 7c838f8..a1b820a 100644 --- a/runner/cmd-args.cpp +++ b/runner/cmd-args.cpp @@ -21,7 +21,7 @@ CmdArgs::CmdArgs(int argc, char* argv[]) : _path(Directory::cwd()), _watch(false void CmdArgs::parseArg(const std::string& arg) { - if (arg == "--watchAll") + if (arg == "--watch") this->_watch = true; if (arg == "--help") diff --git a/runner/main.cpp b/runner/main.cpp index b5601f0..0e11459 100644 --- a/runner/main.cpp +++ b/runner/main.cpp @@ -6,10 +6,10 @@ static void showHelp() { - std::cout << "cest-runner [(Optional) Search Path][--watchAll][--help]" << std::endl; + std::cout << "cest-runner [(Optional) Search Path][--watch][--help]" << std::endl; std::cout << "Options:" << std::endl; std::cout << " [Search Path]: Directory to look for test executables" << std::endl; - std::cout << " --watchAll: Run cest in watch mode" << std::endl; + std::cout << " --watch: Run cest in watch mode" << std::endl; std::cout << " --help: Show this help message" << std::endl; exit(0); } diff --git a/runner/test/cmd-args.test.cpp b/runner/test/cmd-args.test.cpp index 7e2230c..2a4470a 100644 --- a/runner/test/cmd-args.test.cpp +++ b/runner/test/cmd-args.test.cpp @@ -15,7 +15,7 @@ describe("CmdArgs", []() { it("assumes non-first argument not starting with -- to be the path", []() { std::string cmd_path = "/bin/test"; - std::string watch_mode = "--watchAll"; + std::string watch_mode = "--watch"; std::string path = "/home/tests"; std::array argv = { (char *)cmd_path.c_str(), @@ -39,9 +39,9 @@ describe("CmdArgs", []() { expect(cmd_args.watch()).toBeFalsy(); }); - it("sets to true when --watchAll is passed", []() { + it("sets to true when --watch is passed", []() { std::string cmd_path = "/bin/test"; - std::string watch = "--watchAll"; + std::string watch = "--watch"; std::array argv = { (char *)cmd_path.c_str(), (char *)watch.c_str() }; auto cmd_args = CmdArgs(argv.size(), argv.data());