Boost C++ Libraries

...one 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.
PrevUpHomeNext

Class invalid_command_line_syntax

boost::program_options::invalid_command_line_syntax

Synopsis

// In header: <boost/program_options/errors.hpp>


class invalid_command_line_syntax :
  public boost::program_options::invalid_syntax
{
public:

  enum kind_t { long_not_allowed =  30, long_adjacent_not_allowed, 
                short_adjacent_not_allowed, empty_adjacent_parameter, 
                missing_parameter, extra_parameter };
  // construct/copy/destruct
  invalid_command_line_syntax(const std::string &, kind_t);

  // public member functions
  kind_t kind() const;

  // protected static functions
  static std::string error_message(kind_t) ;
};

Description

invalid_command_line_syntax public construct/copy/destruct

  1. invalid_command_line_syntax(const std::string & tokens, kind_t kind);

invalid_command_line_syntax public member functions

  1. kind_t kind() const;

invalid_command_line_syntax protected static functions

  1. static std::string error_message(kind_t kind) ;

PrevUpHomeNext