Index: trunk/ppSim/src/ppSimSequence.c
===================================================================
--- trunk/ppSim/src/ppSimSequence.c	(revision 17557)
+++ trunk/ppSim/src/ppSimSequence.c	(revision 17582)
@@ -43,11 +43,23 @@
     }
 
+    char *label = NULL;
+    if ((argNum = psArgumentGet (argc, argv, "-label"))) { 
+        psArgumentRemove(argNum, &argc, argv);
+	label = psStringCopy (argv[argNum]);
+        psArgumentRemove(argNum, &argc, argv);
+    }
+
     if (argc != 4) {
-	fprintf (stderr, "USAGE: ppSimSequence (sequence) (simulate) (inject)\n");
+	fprintf (stderr, "USAGE: ppSimSequence (sequence) (simulate) (inject) [options]\n");
 	fprintf (stderr, "generates a set of simulated data defined by the sequence file\n");
 	fprintf (stderr, " (sequence) : a mdc-file describing the desired image sequences\n");
 	fprintf (stderr, " (simulate) : an output file with commands to generate the images\n");
 	fprintf (stderr, " (inject)   : an output file with commands to inject the images into the pipeline\n");
-	fprintf (stderr, "\n");
+	fprintf (stderr, "options:\n");
+	fprintf (stderr, " -dbname (dbname)\n");
+	fprintf (stderr, " -path (path)\n");
+	fprintf (stderr, " -workdir (workdir)\n");
+	fprintf (stderr, " -basename (basename)\n");
+	fprintf (stderr, " -label (label)\n");
 	exit (2);
     }
@@ -76,4 +88,5 @@
     if (dbname)  psStringAppend (&injectCommand, " --dbname %s",  dbname);
     if (workdir) psStringAppend (&injectCommand, " --workdir %s", workdir);
+    if (label)   psStringAppend (&injectCommand, " --label %s", label);
 
     unsigned long seed = psMetadataLookupS32 (&status, config, "RND_SEED");
