~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/option_context.cc

  • Committer: lbieber
  • Date: 2010-09-26 21:17:42 UTC
  • mfrom: (1793.3.3 drizzle-bug-646202)
  • mto: This revision was merged to the branch mainline in revision 1796.
  • Revision ID: lbieber@orisndriz08-20100926211742-yy2fu65qjcotmonp
Merge Andrew - fix bug 646202 - Turn off Boost PO option guessing

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    "test", "--test.option=foo"
44
44
  };
45
45
 
46
 
  po::store(po::command_line_parser(2, (char **)options).
 
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).
47
50
            options(command_line_options).run(), vm);
48
51
  po::notify(vm);
49
52