IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17582


Ignore:
Timestamp:
May 8, 2008, 11:05:22 AM (18 years ago)
Author:
eugene
Message:

adding -label, additional help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimSequence.c

    r17557 r17582  
    4343    }
    4444
     45    char *label = NULL;
     46    if ((argNum = psArgumentGet (argc, argv, "-label"))) {
     47        psArgumentRemove(argNum, &argc, argv);
     48        label = psStringCopy (argv[argNum]);
     49        psArgumentRemove(argNum, &argc, argv);
     50    }
     51
    4552    if (argc != 4) {
    46         fprintf (stderr, "USAGE: ppSimSequence (sequence) (simulate) (inject)\n");
     53        fprintf (stderr, "USAGE: ppSimSequence (sequence) (simulate) (inject) [options]\n");
    4754        fprintf (stderr, "generates a set of simulated data defined by the sequence file\n");
    4855        fprintf (stderr, " (sequence) : a mdc-file describing the desired image sequences\n");
    4956        fprintf (stderr, " (simulate) : an output file with commands to generate the images\n");
    5057        fprintf (stderr, " (inject)   : an output file with commands to inject the images into the pipeline\n");
    51         fprintf (stderr, "\n");
     58        fprintf (stderr, "options:\n");
     59        fprintf (stderr, " -dbname (dbname)\n");
     60        fprintf (stderr, " -path (path)\n");
     61        fprintf (stderr, " -workdir (workdir)\n");
     62        fprintf (stderr, " -basename (basename)\n");
     63        fprintf (stderr, " -label (label)\n");
    5264        exit (2);
    5365    }
     
    7688    if (dbname)  psStringAppend (&injectCommand, " --dbname %s",  dbname);
    7789    if (workdir) psStringAppend (&injectCommand, " --workdir %s", workdir);
     90    if (label)   psStringAppend (&injectCommand, " --label %s", label);
    7891
    7992    unsigned long seed = psMetadataLookupS32 (&status, config, "RND_SEED");
Note: See TracChangeset for help on using the changeset viewer.