Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

Function template parse_command_line

boost::program_options::parse_command_line —


template<typename charT> 
basic_parsed_options< charT > 
parse_command_line(int argc, charT * argv, const options_description & , 
int style = 0, 
function1< std::pair< std::string, std::string >, const std::string & > ext = ext_parser());


Creates instance of 'command_line_parser', passes parameters to it, and returns the result of calling the 'run' method.

Copyright 2002-2004 Vladimir Prus