~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/option_context.cc

  • Committer: Brian Aker
  • Date: 2010-08-18 19:37:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1720.
  • Revision ID: brian@tangent.org-20100818193719-bxxzn1pi22styowd
created function that can be used to simply crash the server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    "test", "--test.option=foo"
44
44
  };
45
45
 
46
 
  // Disable allow_guessing
47
 
  int style = po::command_line_style::default_style & ~po::command_line_style::allow_guessing;
48
 
 
49
 
  po::store(po::command_line_parser(2, (char **)options).style(style).
 
46
  po::store(po::command_line_parser(2, (char **)options).
50
47
            options(command_line_options).run(), vm);
51
48
  po::notify(vm);
52
49