aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2018-10-22 12:14:02 +0200
committerLinus Heckemann <git@sphalerite.org>2018-10-23 16:54:24 +0200
commita25abe823fd2719eee09c28ccddf6d9b1c13a2e1 (patch)
treeca4e093d7ffc9bc3c424a02444b27aae8684c9f7 /src/libstore/globals.hh
parent7a9ac91a43e1e05e9df9d1b9b4a2cf322d62bb1c (diff)
Promote log-lines to a fully-qualified option
This allows commands like nix build --log-lines 30 nixpkgs.hello in order to obtain more information in case of a failure.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index cf4ae63cd..6b3e20453 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -82,9 +82,9 @@ public:
/* Whether to show build log output in real time. */
bool verboseBuild = true;
- /* If verboseBuild is false, the number of lines of the tail of
- the log to show if a build fails. */
- size_t logLines = 10;
+ Setting<size_t> logLines{this, 10, "log-lines",
+ "If verbose-build is false, the number of lines of the tail of "
+ "the log to show if a build fails."};
MaxBuildJobsSetting maxBuildJobs{this, 1, "max-jobs",
"Maximum number of parallel build jobs. \"auto\" means use number of cores.",