~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2009-08-22 05:32:23 UTC
  • mfrom: (1115.3.14 captain)
  • Revision ID: brian@gaz-20090822053223-u20a56xso3cf0xfq
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
  Used with --help for detailed option
205
205
*/
206
206
static bool opt_help= false;
 
207
static bool opt_help_extended= false;
207
208
 
208
209
arg_cmp_func Arg_comparator::comparator_matrix[5][2] =
209
210
{{&Arg_comparator::compare_string,     &Arg_comparator::compare_e_string},
531
532
 
532
533
  if (exit_code)
533
534
    errmsg_printf(ERRMSG_LVL_ERROR, _("Aborting\n"));
534
 
  else if (opt_help)
 
535
  else if (opt_help || opt_help_extended)
535
536
    usage();
536
537
  clean_up(!opt_help && (exit_code)); /* purecov: inspected */
537
538
  clean_up_mutexes();
1341
1342
  if (ha_init_errors())
1342
1343
    return(1);
1343
1344
 
1344
 
  if (plugin_init(plugins, &defaults_argc, defaults_argv, (opt_help ? PLUGIN_INIT_SKIP_INITIALIZATION : 0)))
 
1345
  if (plugin_init(plugins, &defaults_argc, defaults_argv,
 
1346
                  ((opt_help) ? PLUGIN_INIT_SKIP_INITIALIZATION : 0)))
1345
1347
  {
1346
1348
    errmsg_printf(ERRMSG_LVL_ERROR, _("Failed to initialize plugins."));
1347
1349
    unireg_abort(1);
1348
1350
  }
1349
1351
 
1350
 
  if (opt_help)
 
1352
  if (opt_help || opt_help_extended)
1351
1353
    unireg_abort(0);
1352
1354
 
1353
1355
  /* we do want to exit if there are any other unknown options */
1677
1679
  {"help", '?', N_("Display this help and exit."),
1678
1680
   (char**) &opt_help, (char**) &opt_help, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
1679
1681
   0, 0},
 
1682
  {"help-extended", '?',
 
1683
   N_("Display this help and exit after initializing plugins."),
 
1684
   (char**) &opt_help_extended, (char**) &opt_help_extended,
 
1685
   0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1680
1686
  {"auto-increment-increment", OPT_AUTO_INCREMENT,
1681
1687
   N_("Auto-increment columns are incremented by this"),
1682
1688
   (char**) &global_system_variables.auto_increment_increment,
2185
2191
 
2186
2192
  printf(_("Usage: %s [OPTIONS]\n"), my_progname);
2187
2193
  {
2188
 
#ifdef FOO
2189
 
  print_defaults(DRIZZLE_CONFIG_NAME,load_default_groups);
2190
 
  puts("");
2191
 
  set_default_port();
2192
 
#endif
2193
 
 
2194
 
  /* Print out all the options including plugin supplied options */
2195
 
  my_print_help_inc_plugins(my_long_options);
 
2194
     print_defaults(DRIZZLE_CONFIG_NAME,load_default_groups);
 
2195
     puts("");
 
2196
 
 
2197
     /* Print out all the options including plugin supplied options */
 
2198
     my_print_help_inc_plugins(my_long_options);
2196
2199
  }
2197
2200
}
2198
2201