Advertisement
Guest User

Untitled

a guest
Jan 16th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1.     void parse_config(int argc, wchar_t* argv[])
  2.     {
  3.         namespace po = boost::program_options;
  4.  
  5.         po::options_description desc("Allowed options");
  6.         desc.add_options()
  7.             ("dir", po::wvalue<std::wstring>(), "install directory")
  8.             ;
  9.  
  10.         po::variables_map vm;
  11.         po::store(po::parse_command_line(argc, argv, desc), vm);
  12.         po::notify(vm);
  13.  
  14.         ... = vm["dir"].as<std::wstring>();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement