ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/staticProps/StaticPropsCmd.c
(Generate patch)

Comparing trunk/OOPSE-4/src/applications/staticProps/StaticPropsCmd.c (file contents):
Revision 2242 by tim, Fri May 27 21:11:24 2005 UTC vs.
Revision 2539 by tim, Mon Jan 9 22:14:32 2006 UTC

# Line 1 | Line 1
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:
# Line 60 | Line 60 | cmdline_parser_print_help (void)
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  
# Line 108 | Line 109 | cmdline_parser (int argc, char * const *argv, struct g
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; \
# Line 157 | Line 159 | cmdline_parser (int argc, char * const *argv, struct g
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  
# Line 455 | Line 458 | cmdline_parser (int argc, char * const *argv, struct g
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.  */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines