19 Aug
2013
19 Aug
'13
4:46 p.m.
Hi All,
I am using program option for my program. Here is my code snippet
string inputFile, outputFile;
/* Populate command line arguments */
po::options_description desc("Usage: KDMGenerator [OPTIONS]");
{
desc.add_options()
("help", "prints this message")
( "input-file", po::value<string>(&inputFile), "input file
name" )
( "output-file", po::value<string>(&outputFile), "output file
name");
}
po::variables_map vm;
po::store(po::parse_command_line(argc, argv, desc), vm);
po::notify(vm);
if (vm.count("help") || !vm.size())
{
cout <