Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

src/asp/Core/Common.cc: Clearer variable names

  • Loading branch information...
commit c811c62c1673109e0dcc0e3d80596588c1a85398 1 parent 59774ec
@oleg-alexandrov oleg-alexandrov authored
Showing with 7 additions and 7 deletions.
  1. +5 −5 src/asp/Core/Common.cc
  2. +2 −2 src/asp/Core/Common.h
View
10 src/asp/Core/Common.cc
@@ -75,8 +75,8 @@ asp::BaseOptionsDescription::BaseOptionsDescription( asp::BaseOptions& opt ) {
po::variables_map
asp::check_command_line( int argc, char *argv[], BaseOptions& opt,
po::options_description const& public_options,
- po::options_description const& hidden_options,
- po::positional_options_description const& positional,
+ po::options_description const& positional_options,
+ po::positional_options_description const& positional_desc,
std::string & usage_comment,
bool allow_unregistered ) {
// Finish filling in the usage_comment.
@@ -88,12 +88,12 @@ asp::check_command_line( int argc, char *argv[], BaseOptions& opt,
po::variables_map vm;
try {
po::options_description all_options;
- all_options.add(public_options).add(hidden_options);
+ all_options.add(public_options).add(positional_options);
if ( allow_unregistered ) {
- po::store( po::command_line_parser( argc, argv ).options(all_options).positional(positional).allow_unregistered().style( po::command_line_style::unix_style ).run(), vm );
+ po::store( po::command_line_parser( argc, argv ).options(all_options).positional(positional_desc).allow_unregistered().style( po::command_line_style::unix_style ).run(), vm );
} else {
- po::store( po::command_line_parser( argc, argv ).options(all_options).positional(positional).style( po::command_line_style::unix_style ).run(), vm );
+ po::store( po::command_line_parser( argc, argv ).options(all_options).positional(positional_desc).style( po::command_line_style::unix_style ).run(), vm );
}
po::notify( vm );
View
4 src/asp/Core/Common.h
@@ -57,8 +57,8 @@ namespace asp {
boost::program_options::variables_map
check_command_line( int argc, char *argv[], BaseOptions& opt,
boost::program_options::options_description const& public_options,
- boost::program_options::options_description const& hidden_options,
- boost::program_options::positional_options_description const& positional,
+ boost::program_options::options_description const& positional_options,
+ boost::program_options::positional_options_description const& positional_desc,
std::string & usage_comment,
bool allow_unregistered = false );
Please sign in to comment.
Something went wrong with that request. Please try again.