--- trunk/src/applications/staticProps/StaticPropsCmd.c 2005/02/18 23:07:32 369 +++ trunk/src/applications/staticProps/StaticPropsCmd.c 2005/05/26 22:45:00 543 @@ -1,7 +1,7 @@ /* File autogenerated by gengetopt version 2.11 generated with the following command: - /home/maul/gezelter/tim/bin/gengetopt -F StaticPropsCmd + /home/maul/gezelter/tim/bin/gengetopt -i StaticProps.ggo -F StaticPropsCmd The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: @@ -53,6 +53,7 @@ cmdline_parser_print_help (void) printf(" --r_omega g(r, cos(omega))\n"); printf(" --theta_omega g(cos(theta), cos(omega))\n"); printf(" --gxyz g(x, y, z)\n"); + printf(" --p2 p2 order parameter\n"); } @@ -94,6 +95,7 @@ cmdline_parser (int argc, char * const *argv, struct g args_info->r_omega_given = 0 ; args_info->theta_omega_given = 0 ; args_info->gxyz_given = 0 ; + args_info->p2_given = 0 ; #define clear_args() { \ args_info->input_arg = NULL; \ args_info->output_arg = NULL; \ @@ -134,6 +136,7 @@ cmdline_parser (int argc, char * const *argv, struct g { "r_omega", 0, NULL, 0 }, { "theta_omega", 0, NULL, 0 }, { "gxyz", 0, NULL, 0 }, + { "p2", 0, NULL, 0 }, { NULL, 0, NULL, 0 } }; @@ -334,6 +337,20 @@ cmdline_parser (int argc, char * const *argv, struct g break; } + /* p2 order parameter. */ + else if (strcmp (long_options[option_index].name, "p2") == 0) + { + if (args_info->p2_given) + { + fprintf (stderr, "%s: `--p2' option given more than once\n", CMDLINE_PARSER_PACKAGE); + clear_args (); + exit (EXIT_FAILURE); + } + args_info->p2_given = 1; staticProps_group_counter += 1; + + break; + } + case '?': /* Invalid option. */ /* `getopt_long' already printed an error message. */