MySQL 8.3.0
Source Code Documentation
keyring_cli.cc File Reference
#include "keyring_frontend.h"
#include <ostream>
#include <string>

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 
)