1
我写一个使用Boost的程序选项库的程序,我不能够使用boost验证文件扩展名::程序选项:如何使用boost :: progam_option验证文件扩展名和boost :: command_line_Parser
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);
什么文件扩展名。 – sehe
(“diff,d”,po :: value(),“指定.xyz文件,要创建的.xyz的名称”)在这里,我想验证.xya文件扩展名,@sehe –
多德。为什么这不是你的问题?点击[编辑](http://stackoverflow.com/posts/33383822/edit)也许? – sehe