mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
guix-daemon: Rename --build-cores' for consistency with
guix-build'.
* nix/nix-daemon/guix-daemon.cc (options): Change `--build-cores' to `--cores', and `-C' to `-c'. (parse_opt): Adjust accordingly.
This commit is contained in:
parent
784bb1f37b
commit
6221db61f5
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ static const struct argp_option options[] =
|
||||||
{
|
{
|
||||||
{ "system", GUIX_OPT_SYSTEM, "SYSTEM", 0,
|
{ "system", GUIX_OPT_SYSTEM, "SYSTEM", 0,
|
||||||
"Assume SYSTEM as the current system type" },
|
"Assume SYSTEM as the current system type" },
|
||||||
{ "build-cores", 'C', "N", 0,
|
{ "cores", 'c', "N", 0,
|
||||||
"Use N CPU cores to build each derivation; 0 means as many as available" },
|
"Use N CPU cores to build each derivation; 0 means as many as available" },
|
||||||
{ "max-jobs", 'M', "N", 0,
|
{ "max-jobs", 'M', "N", 0,
|
||||||
"Allow at most N build jobs" },
|
"Allow at most N build jobs" },
|
||||||
|
@ -141,7 +141,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
|
||||||
case GUIX_OPT_DEBUG:
|
case GUIX_OPT_DEBUG:
|
||||||
verbosity = lvlDebug;
|
verbosity = lvlDebug;
|
||||||
break;
|
break;
|
||||||
case 'C':
|
case 'c':
|
||||||
settings.buildCores = atoi (arg);
|
settings.buildCores = atoi (arg);
|
||||||
break;
|
break;
|
||||||
case 'M':
|
case 'M':
|
||||||
|
|
Loading…
Reference in a new issue