--- trunk/src/applications/staticProps/StaticPropsCmd.c 2005/05/27 04:41:34 544 +++ trunk/src/applications/staticProps/StaticPropsCmd.c 2006/01/09 22:14:32 840 @@ -1,7 +1,7 @@ /* File autogenerated by gengetopt version 2.11 generated with the following command: - /home/maul/gezelter/tim/bin/gengetopt -i StaticProps.ggo -F StaticPropsCmd + /home/maul/gezelter/tim/program/gengetopt-2.11/src/gengetopt -F StaticPropsCmd The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: @@ -59,6 +59,8 @@ cmdline_parser_print_help (void) printf(" --gxyz g(x, y, z)\n"); printf(" --p2 p2 order parameter (--sele1 and --sele2 must \n be specified)\n"); printf(" --scd scd order parameter(either --sele1, --sele2, \n --sele3 are specified or --molname, \n --begin, --end are specified)\n"); + printf(" --density density plot (--sele1 must be specified)\n"); + printf(" --slab_density slab density (--sele1 must be specified)\n"); } @@ -106,6 +108,8 @@ cmdline_parser (int argc, char * const *argv, struct g args_info->gxyz_given = 0 ; args_info->p2_given = 0 ; args_info->scd_given = 0 ; + args_info->density_given = 0 ; + args_info->slab_density_given = 0 ; #define clear_args() { \ args_info->input_arg = NULL; \ args_info->output_arg = NULL; \ @@ -154,6 +158,8 @@ cmdline_parser (int argc, char * const *argv, struct g { "gxyz", 0, NULL, 0 }, { "p2", 0, NULL, 0 }, { "scd", 0, NULL, 0 }, + { "density", 0, NULL, 0 }, + { "slab_density", 0, NULL, 0 }, { NULL, 0, NULL, 0 } }; @@ -434,10 +440,38 @@ cmdline_parser (int argc, char * const *argv, struct g exit (EXIT_FAILURE); } args_info->scd_given = 1; staticProps_group_counter += 1; + + break; + } + + /* density plot (--sele1 must be specified). */ + else if (strcmp (long_options[option_index].name, "density") == 0) + { + if (args_info->density_given) + { + fprintf (stderr, "%s: `--density' option given more than once\n", CMDLINE_PARSER_PACKAGE); + clear_args (); + exit (EXIT_FAILURE); + } + args_info->density_given = 1; staticProps_group_counter += 1; break; } + /* slab density (--sele1 must be specified). */ + else if (strcmp (long_options[option_index].name, "slab_density") == 0) + { + if (args_info->slab_density_given) + { + fprintf (stderr, "%s: `--slab_density' option given more than once\n", CMDLINE_PARSER_PACKAGE); + clear_args (); + exit (EXIT_FAILURE); + } + args_info->slab_density_given = 1; staticProps_group_counter += 1; + + break; + } + case '?': /* Invalid option. */ /* `getopt_long' already printed an error message. */