IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16992


Ignore:
Timestamp:
Mar 14, 2008, 8:23:25 AM (18 years ago)
Author:
eugene
Message:

make -closest the default option

Location:
trunk/Ohana/src/addstar/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/args.c

    r16983 r16992  
    163163    remove_argument (N, &argc, argv);
    164164  }
    165   /* use 'closest star' matching, rather than traditional method */
    166   options.closest = FALSE;
     165  /* use 'closest star' matching by default */
     166  options.closest = TRUE;
    167167  if ((N = get_argument (argc, argv, "-closest"))) {
    168168    options.closest = TRUE;
     169    remove_argument (N, &argc, argv);
     170  }
     171  if ((N = get_argument (argc, argv, "-all-matches"))) {
     172    options.closest = FALSE;
    169173    remove_argument (N, &argc, argv);
    170174  }
  • trunk/Ohana/src/addstar/src/args_client.c

    r16983 r16992  
    111111    remove_argument (N, &argc, argv);
    112112  }
    113   /* use 'closest star' matching, rather than traditional method */
    114   options.closest = FALSE;
     113  /* use 'closest star' matching by default */
     114  options.closest = TRUE;
    115115  if ((N = get_argument (argc, argv, "-closest"))) {
    116116    options.closest = TRUE;
     117    remove_argument (N, &argc, argv);
     118  }
     119  if ((N = get_argument (argc, argv, "-all-matches"))) {
     120    options.closest = FALSE;
    117121    remove_argument (N, &argc, argv);
    118122  }
Note: See TracChangeset for help on using the changeset viewer.