~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

Merge to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
  Used with --help for detailed option
195
195
*/
196
196
bool opt_help= false;
197
 
bool opt_help_extended= false;
198
197
 
199
198
arg_cmp_func Arg_comparator::comparator_matrix[5][2] =
200
199
{{&Arg_comparator::compare_string,     &Arg_comparator::compare_e_string},
500
499
 
501
500
  if (exit_code)
502
501
    errmsg_printf(ERRMSG_LVL_ERROR, _("Aborting\n"));
503
 
  else if (opt_help || opt_help_extended)
 
502
  else if (opt_help)
504
503
    usage();
505
504
  clean_up(!opt_help && (exit_code));
506
505
  internal::my_end();
1226
1225
  std::string system_config_file_drizzle("drizzled.cnf");
1227
1226
 
1228
1227
  config_options.add_options()
1229
 
  ("help-extended", po::value<bool>(&opt_help_extended)->default_value(false)->zero_tokens(),
1230
 
  N_("Display this help and exit after initializing plugins."))
1231
1228
  ("help,?", po::value<bool>(&opt_help)->default_value(false)->zero_tokens(),
1232
1229
  N_("Display this help and exit."))
1233
1230
  ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(),
1614
1611
  ha_init_errors();
1615
1612
 
1616
1613
 
1617
 
  if (opt_help || opt_help_extended)
 
1614
  if (opt_help)
1618
1615
    unireg_abort(0);
1619
1616
 
1620
1617
  if (plugin_finalize(plugins))
1755
1752
  {"help", '?', N_("Display this help and exit."),
1756
1753
   (char**) &opt_help, (char**) &opt_help, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
1757
1754
   0, 0},
1758
 
  {"help-extended", '?',
1759
 
   N_("Display this help and exit after initializing plugins."),
1760
 
   (char**) &opt_help_extended, (char**) &opt_help_extended,
1761
 
   0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1762
1755
  {"auto-increment-increment", OPT_AUTO_INCREMENT,
1763
1756
   N_("Auto-increment columns are incremented by this"),
1764
1757
   (char**) &global_system_variables.auto_increment_increment,
2412
2405
  internal::convert_dirname(buff,buff,NULL);
2413
2406
  (void) internal::my_load_path(language,language,buff);
2414
2407
 
2415
 
  if (not opt_help and not opt_help_extended)
 
2408
  if (not opt_help)
2416
2409
  {
2417
2410
    const char *tmp_string= getenv("TMPDIR") ? getenv("TMPDIR") : NULL;
2418
2411
    struct stat buf;