MySQL 9.1.0
Source Code Documentation
main.cc File Reference
#include "plugin_info_app.h"
#include <iostream>
#include <string>
#include "mysql/harness/tty.h"
#include "mysql/harness/vt100.h"
#include "mysql/harness/vt100_filter.h"

Functions

static void display_error (std::ostream &cerr, const std::string program_name, const std::string &errmsg, bool with_help)
 display error. More...
 
int main (int argc, char **argv)
 

Function Documentation

◆ display_error()

static void display_error ( std::ostream &  cerr,
const std::string  program_name,
const std::string &  errmsg,
bool  with_help 
)
static

display error.

in case the frontend failed to parse arguments, show errormsg and a hint for help. If the frontend failed for another reason, just show the errormsg.

Parameters
cerroutput stream
program_namename of executable that was started (argv[0])
errmsgerror message to display
with_helptrue, if "hint for help" shall be displayed

◆ main()

int main ( int  argc,
char **  argv 
)