summaryrefslogtreecommitdiff
path: root/src/buildtool/common/cli.hpp
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2022-12-23 15:03:04 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-01-20 15:47:43 +0100
commit5129bc284cf2372bfbc87b00d3b9bd1117734c43 (patch)
tree0a9b36478fab08ff55dd854e45f6e262931e2e1b /src/buildtool/common/cli.hpp
parent0db0064273920c835342dd168f8213b6a567e8c9 (diff)
downloadjustbuild-5129bc284cf2372bfbc87b00d3b9bd1117734c43.tar.gz
Add gc subcommand
Diffstat (limited to 'src/buildtool/common/cli.hpp')
-rw-r--r--src/buildtool/common/cli.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp
index b9c2feb9..7c2cd65c 100644
--- a/src/buildtool/common/cli.hpp
+++ b/src/buildtool/common/cli.hpp
@@ -310,7 +310,7 @@ static inline auto SetupDiagnosticArguments(
->type_name("PATH");
}
-static inline auto SetupEndpointArguments(
+static inline auto SetupCacheArguments(
gsl::not_null<CLI::App*> const& app,
gsl::not_null<EndpointArguments*> const& clargs) {
app->add_option_function<std::string>(
@@ -321,7 +321,11 @@ static inline auto SetupEndpointArguments(
},
"Root for local CAS, cache, and build directories.")
->type_name("PATH");
+}
+static inline auto SetupEndpointArguments(
+ gsl::not_null<CLI::App*> const& app,
+ gsl::not_null<EndpointArguments*> const& clargs) {
app->add_option("-r,--remote-execution-address",
clargs->remote_execution_address,
"Address of the remote execution service.")