IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23586


Ignore:
Timestamp:
Mar 29, 2009, 1:48:30 PM (17 years ago)
Author:
eugene
Message:

fix usage info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/job.c

    r23554 r23586  
    1111      return (FALSE);
    1212  }   
     13
     14  if (get_argument (argc, argv, "-h")) goto usage;
     15  if (get_argument (argc, argv, "-help")) goto usage;
     16  if (get_argument (argc, argv, "--help")) goto usage;
    1317
    1418  Host = NULL;
     
    3640
    3741  if (argc < 2) {
    38     gprint (GP_ERR, "USAGE: job [options] (arg0) (arg1) ... (argN)\n");
    39     gprint (GP_ERR, "  arguments of the form @MAX_THREADS@ will be replaced when the job is launched\n");
    4042    FREE (Host);
    41     return (FALSE);
     43    goto usage;
    4244  }
    4345 
     
    5254  gprint (GP_LOG, "JobID: %d\n", (int) JobID);
    5355  return (TRUE);
     56
     57 usage:
     58    gprint (GP_ERR, "USAGE: job [options] (arg0) (arg1) ... (argN)\n");
     59    gprint (GP_ERR, "  options: -host, +host, -timeout\n");
     60    gprint (GP_ERR, "  arguments of the form @MAX_THREADS@ will be replaced when the job is launched\n");
     61    return (FALSE);
    5462}
Note: See TracChangeset for help on using the changeset viewer.