summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2023-02-16 09:50:56 +0100
committerSascha Roloff <sascha.roloff@huawei.com>2023-02-20 17:23:04 +0100
commit3ab6e2aceaf3b1ce0cc7d5ea47b0ecc53dc4a6a7 (patch)
tree80d78a81ec33481f2ed9e905652446667bc24f74
parentd1cca89defda81e9114a836c228abf4d794c1a10 (diff)
downloadjustbuild-3ab6e2aceaf3b1ce0cc7d5ea47b0ecc53dc4a6a7.tar.gz
Add logging command-line arguments to gc subcommand
-rw-r--r--share/man/just.1.org6
-rw-r--r--src/buildtool/main/main.cpp1
2 files changed, 4 insertions, 3 deletions
diff --git a/share/man/just.1.org b/share/man/just.1.org
index f56ef9b7..eee7e146 100644
--- a/share/man/just.1.org
+++ b/share/man/just.1.org
@@ -382,15 +382,15 @@ the original remote build execution protocol.
Path to local log file. ~just~ will store the information printed
on stderr in the log file along with the thread id and timestamp
when the output has been generated.\\
- Supported by: analyse|build|describe|install|install-cas|rebuild|traverse|execute.
+ Supported by: analyse|build|describe|install|install-cas|rebuild|traverse|gc|execute.
*--log-limit* NUM\\
Log limit (higher is more verbose) in interval [0,6] (Default: 3).\\
- Supported by: analyse|build|describe|install|install-cas|rebuild|traverse|execute.
+ Supported by: analyse|build|describe|install|install-cas|rebuild|traverse|gc|execute.
*--plain-log*\\
Do not use ANSI escape sequences to highlight messages.\\
- Supported by: analyse|build|describe|install|install-cas|rebuild|traverse|execute.
+ Supported by: analyse|build|describe|install|install-cas|rebuild|traverse|gc|execute.
*--expression-log-limit* NUM\\
In error messages, truncate the entries in the enumeration of the active
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp
index 3ffb8159..3e23cf63 100644
--- a/src/buildtool/main/main.cpp
+++ b/src/buildtool/main/main.cpp
@@ -181,6 +181,7 @@ auto SetupTraverseCommandArguments(
auto SetupGcCommandArguments(
gsl::not_null<CLI::App*> const& app,
gsl::not_null<CommandLineArguments*> const& clargs) {
+ SetupLogArguments(app, &clargs->log);
SetupCacheArguments(app, &clargs->endpoint);
}