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.
This commit is contained in:
Linus Heckemann 2018-10-22 12:14:02 +02:00
parent 7a9ac91a43
commit a25abe823f
1 changed files with 3 additions and 3 deletions

View File

@ -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.",