I am writing a program that uses Boost's Program Options library, I am not able to validate file extension using boost::program option:
po::options_description desc("Allowed options");
desc.add_options()
("help", "produce help message")
("diff,d", po::value< std::string >(),"Specify the .xyz file, name of the .xyz to create")**.xyz file I want to validate,while givin input as comman line **
;
po::variables_map vm;
po::store(po::parse_command_line(ac, av, desc), vm);
po::notify(vm);