39#include <snapdev/poison.h>
73 throw getopt_logic_error(
"argv pointer cannot be nullptr");
75 if(argv[0] !=
nullptr)
81 if(p == std::string::npos)
87 if(p != std::string::npos)
195 return std::string();
218 return std::string();
248 return std::string();
Definitions of the advanced getopt class.
std::string get_group_name() const
Retrieve the group name if one is defined.
std::string get_group_or_project_name() const
Retrieve the group or project name.
options_environment f_options_environment
std::string f_program_name
std::string get_program_fullname() const
Get the full name of the program.
std::string f_program_fullname
void parse_program_name(char *argv[])
Transform the argv[0] parameter in the program name.
std::string get_program_name() const
Get the basename of the program.
std::string get_project_name() const
Retrieve the project name if one is defined.
Definitions of the advanced getopt exceptions.
The advgetopt environment to parse command line options.
char const * f_project_name
char const * f_group_name