diff --git a/tools/main.cpp b/tools/main.cpp index df58e96..b0c5ed4 100644 --- a/tools/main.cpp +++ b/tools/main.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include #include @@ -26,7 +25,7 @@ static V depends(V&& v) { return std::forward(v); } template struct runner { - runner(CLI::App& app) + explicit runner(CLI::App& app) : tup(depends(app)...) {} template @@ -61,7 +60,6 @@ int main(int argc, char** argv) { }, "get the version of antler-proj"); - runneradd_option("-p, path", path, "Path containing the project's yaml file."); app_subcommand = subcommand->add_subcommand("app", "Remove app from the project."); @@ -79,7 +79,7 @@ namespace antler { lib_subcommand->footer(std::string(R"(Examples:)") + "\n\t" + app.get_name() +R"( remove lib MyLib)"); lib_subcommand->add_option("-p, path", path, "Path containing the project's yaml file."); - lib_subcommand->add_option("-n, name", obj_name, "The name of the library to add.")->required(); + lib_subcommand->add_option("-n, name", obj_name, "The name of the library to remove.")->required(); dep_subcommand = subcommand->add_subcommand("dep", "Remove a dependency from the project."); dep_subcommand->footer(std::string(R"(Examples:)") diff --git a/tools/update.hpp b/tools/update.hpp index d3e6bd7..b4665e5 100644 --- a/tools/update.hpp +++ b/tools/update.hpp @@ -109,7 +109,8 @@ namespace antler { update_project(CLI::App& app) { path = system::fs::current_path().string(); - subcommand = app.add_subcommand("update", "Update an app, dependency, library or test to your project."); + subcommand = app.add_subcommand("update", "Update an app, dependency, library or test in your project."); + subcommand->add_option("-p, path", path, "Path containing the project's yaml file."); app_subcommand = subcommand->add_subcommand("app", "Update an app in the project.");