| 1 | 
  | 
/* | 
| 2 | 
  | 
  File autogenerated by gengetopt version 2.11 | 
| 3 | 
  | 
  generated with the following command: | 
| 4 | 
< | 
  /home/maul/gezelter/tim/bin/gengetopt -F DynamicPropsCmd  | 
| 4 | 
> | 
  /home/maul/gezelter/tim/program/gengetopt-2.11/src/gengetopt -F DynamicPropsCmd  | 
| 5 | 
  | 
 | 
| 6 | 
  | 
  The developers of gengetopt consider the fixed text that goes in all | 
| 7 | 
  | 
  gengetopt output files to be in the public domain: | 
| 41 | 
  | 
  printf("  -o, --output=filename         output file name\n"); | 
| 42 | 
  | 
  printf("      --sele1=selection script  select first stuntdouble set\n"); | 
| 43 | 
  | 
  printf("      --sele2=selection script  select second stuntdouble set (if sele2 is not \n                                  set, use script from sele1)\n"); | 
| 44 | 
+ | 
  printf("      --order=INT               Lengendre Polynomial Order\n"); | 
| 45 | 
  | 
  printf("\n"); | 
| 46 | 
  | 
  printf(" Group: dynamicProps  an option of this group is required\n"); | 
| 47 | 
  | 
  printf("  -r, --rcorr                   rmsd\n"); | 
| 48 | 
  | 
  printf("  -v, --vcorr                   velocity correlation function\n"); | 
| 49 | 
  | 
  printf("  -d, --dcorr                   dipole correlation function\n"); | 
| 50 | 
+ | 
  printf("  -l, --lcorr                   Lengendre correlation function\n"); | 
| 51 | 
  | 
} | 
| 52 | 
  | 
 | 
| 53 | 
  | 
 | 
| 79 | 
  | 
  args_info->output_given = 0 ; | 
| 80 | 
  | 
  args_info->sele1_given = 0 ; | 
| 81 | 
  | 
  args_info->sele2_given = 0 ; | 
| 82 | 
+ | 
  args_info->order_given = 0 ; | 
| 83 | 
  | 
  args_info->rcorr_given = 0 ; | 
| 84 | 
  | 
  args_info->vcorr_given = 0 ; | 
| 85 | 
  | 
  args_info->dcorr_given = 0 ; | 
| 86 | 
+ | 
  args_info->lcorr_given = 0 ; | 
| 87 | 
  | 
#define clear_args() { \ | 
| 88 | 
  | 
  args_info->input_arg = NULL; \ | 
| 89 | 
  | 
  args_info->output_arg = NULL; \ | 
| 110 | 
  | 
        { "output",     1, NULL, 'o' }, | 
| 111 | 
  | 
        { "sele1",      1, NULL, 0 }, | 
| 112 | 
  | 
        { "sele2",      1, NULL, 0 }, | 
| 113 | 
+ | 
        { "order",      1, NULL, 0 }, | 
| 114 | 
  | 
        { "rcorr",      0, NULL, 'r' }, | 
| 115 | 
  | 
        { "vcorr",      0, NULL, 'v' }, | 
| 116 | 
  | 
        { "dcorr",      0, NULL, 'd' }, | 
| 117 | 
+ | 
        { "lcorr",      0, NULL, 'l' }, | 
| 118 | 
  | 
        { NULL, 0, NULL, 0 } | 
| 119 | 
  | 
      }; | 
| 120 | 
  | 
 | 
| 121 | 
  | 
      stop_char = 0; | 
| 122 | 
< | 
      c = getopt_long (argc, argv, "hVi:o:rvd", long_options, &option_index); | 
| 122 | 
> | 
      c = getopt_long (argc, argv, "hVi:o:rvdl", long_options, &option_index); | 
| 123 | 
  | 
 | 
| 124 | 
  | 
      if (c == -1) break;       /* Exit from `while (1)' loop.  */ | 
| 125 | 
  | 
 | 
| 190 | 
  | 
          dynamicProps_group_counter += 1; | 
| 191 | 
  | 
        break; | 
| 192 | 
  | 
 | 
| 193 | 
+ | 
        case 'l':       /* Lengendre correlation function.  */ | 
| 194 | 
+ | 
          if (args_info->lcorr_given) | 
| 195 | 
+ | 
            { | 
| 196 | 
+ | 
              fprintf (stderr, "%s: `--lcorr' (`-l') option given more than once\n", CMDLINE_PARSER_PACKAGE); | 
| 197 | 
+ | 
              clear_args (); | 
| 198 | 
+ | 
              exit (EXIT_FAILURE); | 
| 199 | 
+ | 
            } | 
| 200 | 
+ | 
          args_info->lcorr_given = 1; | 
| 201 | 
+ | 
          dynamicProps_group_counter += 1; | 
| 202 | 
+ | 
        break; | 
| 203 | 
  | 
 | 
| 204 | 
+ | 
 | 
| 205 | 
  | 
        case 0: /* Long option with no short option */ | 
| 206 | 
  | 
          /* select first stuntdouble set.  */ | 
| 207 | 
  | 
          if (strcmp (long_options[option_index].name, "sele1") == 0) | 
| 231 | 
  | 
            break; | 
| 232 | 
  | 
          } | 
| 233 | 
  | 
           | 
| 234 | 
+ | 
          /* Lengendre Polynomial Order.  */ | 
| 235 | 
+ | 
          else if (strcmp (long_options[option_index].name, "order") == 0) | 
| 236 | 
+ | 
          { | 
| 237 | 
+ | 
            if (args_info->order_given) | 
| 238 | 
+ | 
              { | 
| 239 | 
+ | 
                fprintf (stderr, "%s: `--order' option given more than once\n", CMDLINE_PARSER_PACKAGE); | 
| 240 | 
+ | 
                clear_args (); | 
| 241 | 
+ | 
                exit (EXIT_FAILURE); | 
| 242 | 
+ | 
              } | 
| 243 | 
+ | 
            args_info->order_given = 1; | 
| 244 | 
+ | 
            args_info->order_arg = strtol (optarg,&stop_char,0); | 
| 245 | 
+ | 
            break; | 
| 246 | 
+ | 
          } | 
| 247 | 
+ | 
           | 
| 248 | 
  | 
 | 
| 249 | 
  | 
        case '?':       /* Invalid option.  */ | 
| 250 | 
  | 
          /* `getopt_long' already printed an error message.  */ |