Skip to content

Commit

Permalink
Added support for hidden CLI options.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Dec 26, 2013
1 parent 85075a1 commit 950bebe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/pcp-cpp/pmda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ class pmda {
{
using namespace boost::program_options;
boost::program_options::variables_map options;
store(command_line_parser(argc, argv).options(supported_options())
store(command_line_parser(argc, argv)
.options(supported_options().add(supported_hidden_options()))
.positional(supported_positional_options()).run(), options);

#ifdef PCP_CPP_DEBUG_COMMAND_LINE_OPTIONS
Expand Down Expand Up @@ -361,6 +362,11 @@ class pmda {
return pcp_builtin_options().add(options);
}

virtual boost::program_options::options_description supported_hidden_options() const
{
return boost::program_options::options_description();
}

virtual boost::program_options::positional_options_description supported_positional_options()
{
return boost::program_options::positional_options_description();
Expand Down

0 comments on commit 950bebe

Please sign in to comment.