summary refs log tree commit diff
path: root/nix/nix-daemon/guix-daemon.cc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-01-09 12:14:23 +0100
committerLudovic Courtès <ludo@gnu.org>2013-01-09 12:14:23 +0100
commit6221db61f5c722c49c78827a8dcef13d83252409 (patch)
treed3a61a48908c5179f63941557aeeb33ea2fdec70 /nix/nix-daemon/guix-daemon.cc
parent784bb1f37bfe7efd0c31fdcf207b0459f4edc7bf (diff)
downloadguix-6221db61f5c722c49c78827a8dcef13d83252409.tar.gz
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.
Diffstat (limited to 'nix/nix-daemon/guix-daemon.cc')
-rw-r--r--nix/nix-daemon/guix-daemon.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc
index 7e266111a0..5e624d1daa 100644
--- a/nix/nix-daemon/guix-daemon.cc
+++ b/nix/nix-daemon/guix-daemon.cc
@@ -69,7 +69,7 @@ static const struct argp_option options[] =
   {
     { "system", GUIX_OPT_SYSTEM, "SYSTEM", 0,
       "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" },
     { "max-jobs", 'M', "N", 0,
       "Allow at most N build jobs" },
@@ -141,7 +141,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
     case GUIX_OPT_DEBUG:
       verbosity = lvlDebug;
       break;
-    case 'C':
+    case 'c':
       settings.buildCores = atoi (arg);
       break;
     case 'M':