IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 22, 2019, 3:30:46 PM (7 years ago)
Author:
eugene
Message:

add quiet option to delete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20190329/src/opihi/cmd.data/spline_commands.c

    r40662 r40813  
    131131int spline_delete (int argc, char **argv) {
    132132
    133   int status;
     133  int N, status;
    134134  Spline *spline;
     135
     136  int QUIET = FALSE;
     137  if ((N = get_argument (argc, argv, "-q"))) {
     138    QUIET = TRUE;
     139    remove_argument (N, &argc, argv);
     140  }
    135141
    136142  if (argc != 2) {
     
    141147  spline = FindSpline (argv[1]);
    142148  if (spline == NULL) {
     149    if (QUIET) return TRUE;
    143150    gprint (GP_ERR, "spline %s not found\n", argv[1]);
    144151    return FALSE;
Note: See TracChangeset for help on using the changeset viewer.