Index: trunk/Ohana/src/opihi/pcontrol/host.c
===================================================================
--- trunk/Ohana/src/opihi/pcontrol/host.c	(revision 18098)
+++ trunk/Ohana/src/opihi/pcontrol/host.c	(revision 19124)
@@ -3,7 +3,15 @@
 int host (int argc, char **argv) {
 
+  int N, max_threads;
   IDtype HostID;
   Host *host;
   Stack *AllHosts;
+
+  max_threads = 0;
+  if ((N = get_argument (argc, argv, "-threads"))) {
+    remove_argument (N, &argc, argv);
+    max_threads = atoi(argv[N]);
+    remove_argument (N, &argc, argv);
+  }
 
   if (argc != 3) goto usage;
@@ -12,8 +20,10 @@
 
   if (!strcasecmp (argv[1], "ADD")) {
-    HostID = AddHost (argv[2]);
+    HostID = AddHost (argv[2], max_threads);
     gprint (GP_LOG, "HostID: %d\n", (int) HostID);
     return (TRUE);
   }
+
+  if (max_threads) goto usage;
 
   // this one is safe from in-flight entries: no one else pulls from OFF
@@ -87,4 +97,5 @@
   gprint (GP_LOG, "USAGE: host (command) (hostname)\n");
   gprint (GP_ERR, "  valid commands: add, on, retry, check, off, delete\n");
+  gprint (GP_ERR, "  -threads Nthreads is optional for 'add'\n");
   return (FALSE);
 }
