1 |
|
/* |
2 |
|
File autogenerated by gengetopt version 2.11 |
3 |
|
generated with the following command: |
4 |
< |
/home/maul/gezelter/tim/bin/gengetopt -i StaticProps.ggo -F StaticPropsCmd |
4 |
> |
/home/maul/gezelter/tim/program/gengetopt-2.11/src/gengetopt -F StaticPropsCmd |
5 |
|
|
6 |
|
The developers of gengetopt consider the fixed text that goes in all |
7 |
|
gengetopt output files to be in the public domain: |
59 |
|
printf(" --gxyz g(x, y, z)\n"); |
60 |
|
printf(" --p2 p2 order parameter (--sele1 and --sele2 must \n be specified)\n"); |
61 |
|
printf(" --scd scd order parameter(either --sele1, --sele2, \n --sele3 are specified or --molname, \n --begin, --end are specified)\n"); |
62 |
+ |
printf(" --density density plot (--sele1 must be specified)\n"); |
63 |
+ |
printf(" --slab_density slab density (--sele1 must be specified)\n"); |
64 |
|
} |
65 |
|
|
66 |
|
|
108 |
|
args_info->gxyz_given = 0 ; |
109 |
|
args_info->p2_given = 0 ; |
110 |
|
args_info->scd_given = 0 ; |
111 |
+ |
args_info->density_given = 0 ; |
112 |
+ |
args_info->slab_density_given = 0 ; |
113 |
|
#define clear_args() { \ |
114 |
|
args_info->input_arg = NULL; \ |
115 |
|
args_info->output_arg = NULL; \ |
158 |
|
{ "gxyz", 0, NULL, 0 }, |
159 |
|
{ "p2", 0, NULL, 0 }, |
160 |
|
{ "scd", 0, NULL, 0 }, |
161 |
+ |
{ "density", 0, NULL, 0 }, |
162 |
+ |
{ "slab_density", 0, NULL, 0 }, |
163 |
|
{ NULL, 0, NULL, 0 } |
164 |
|
}; |
165 |
|
|
440 |
|
exit (EXIT_FAILURE); |
441 |
|
} |
442 |
|
args_info->scd_given = 1; staticProps_group_counter += 1; |
443 |
+ |
|
444 |
+ |
break; |
445 |
+ |
} |
446 |
+ |
|
447 |
+ |
/* density plot (--sele1 must be specified). */ |
448 |
+ |
else if (strcmp (long_options[option_index].name, "density") == 0) |
449 |
+ |
{ |
450 |
+ |
if (args_info->density_given) |
451 |
+ |
{ |
452 |
+ |
fprintf (stderr, "%s: `--density' option given more than once\n", CMDLINE_PARSER_PACKAGE); |
453 |
+ |
clear_args (); |
454 |
+ |
exit (EXIT_FAILURE); |
455 |
+ |
} |
456 |
+ |
args_info->density_given = 1; staticProps_group_counter += 1; |
457 |
|
|
458 |
|
break; |
459 |
|
} |
460 |
|
|
461 |
+ |
/* slab density (--sele1 must be specified). */ |
462 |
+ |
else if (strcmp (long_options[option_index].name, "slab_density") == 0) |
463 |
+ |
{ |
464 |
+ |
if (args_info->slab_density_given) |
465 |
+ |
{ |
466 |
+ |
fprintf (stderr, "%s: `--slab_density' option given more than once\n", CMDLINE_PARSER_PACKAGE); |
467 |
+ |
clear_args (); |
468 |
+ |
exit (EXIT_FAILURE); |
469 |
+ |
} |
470 |
+ |
args_info->slab_density_given = 1; staticProps_group_counter += 1; |
471 |
+ |
|
472 |
+ |
break; |
473 |
+ |
} |
474 |
+ |
|
475 |
|
|
476 |
|
case '?': /* Invalid option. */ |
477 |
|
/* `getopt_long' already printed an error message. */ |