about summary refs log tree commit diff
path: root/src/nix-worker/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-01T18·02+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-01T18·02+0000
commitceb982a1be381d59532d0405451f38d263abb617 (patch)
tree02da445f20a268261fa3bc368cfa500065649447 /src/nix-worker/main.cc
parentb0d8e05be16e9887dbf3edcd6167c7f0b36dee5d (diff)
* Right name.
Diffstat (limited to 'src/nix-worker/main.cc')
-rw-r--r--src/nix-worker/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-worker/main.cc b/src/nix-worker/main.cc
index 5d57dd6b62..3642697dcf 100644
--- a/src/nix-worker/main.cc
+++ b/src/nix-worker/main.cc
@@ -143,6 +143,7 @@ void run(Strings args)
     for (Strings::iterator i = args.begin(); i != args.end(); ) {
         string arg = *i++;
         if (arg == "--slave") slave = true;
+        if (arg == "--daemon") daemon = true;
     }
 
     if (slave) {
@@ -156,7 +157,6 @@ void run(Strings args)
 
     else
         throw Error("must be run in either --slave or --daemon mode");
-        
 }
 
 
@@ -165,4 +165,4 @@ void printHelp()
 }
 
 
-string programId = "nix-store";
+string programId = "nix-worker";