mirror of
https://github.com/boostorg/program_options.git
synced 2026-01-22 05:22:39 +00:00
Compare commits
1 Commits
boost-1.84
...
boost-1.85
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b8bac66a9 |
@@ -24,7 +24,7 @@ namespace boost { namespace program_options {
|
||||
basic_command_line_parser<charT>::
|
||||
basic_command_line_parser(int argc, const charT* const argv[])
|
||||
: detail::cmdline(
|
||||
to_internal(std::vector<std::basic_string<charT> >(argv+1, argv+argc))),
|
||||
to_internal(std::vector<std::basic_string<charT> >(argc ? argv+1 : argv, argv+argc))),
|
||||
m_desc()
|
||||
{}
|
||||
|
||||
|
||||
@@ -120,7 +120,11 @@ namespace boost { namespace program_options {
|
||||
basic_command_line_parser(const std::vector<
|
||||
std::basic_string<charT> >& args);
|
||||
/** Creates a command line parser for the specified arguments
|
||||
list. The parameters should be the same as passed to 'main'.
|
||||
list. The parameters should be the same as passed to 'main', meaning:
|
||||
@param argc Must be non-negative i.e. >= 0
|
||||
@param argv Argv[argc] must be 0 e.g. nullptr and
|
||||
if argc is >0 argv[0] up to argv[argc-1] must point to
|
||||
null terminated strings
|
||||
*/
|
||||
basic_command_line_parser(int argc, const charT* const argv[]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user