Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
args Namespace Reference

Functions for handling command line arguments. More...

Functions

int creds (const char *name, int argc, char *argv[])
 Reset the user credentials.
int help (const char *name)
 Print help to stdout, then exit.
int version ()
 Print the version to stdout, then exit.

Detailed Description

Functions for handling command line arguments.

Function Documentation

◆ creds()

int args::creds ( const char * name,
int argc,
char * argv[] )

Reset the user credentials.

Parameters
nameThe name of the program.
argcThe number of arguments.
argvThe arguments.

Examples

creds("sunshine", 2, {"new_username", "new_password"});
int creds(const char *name, int argc, char *argv[])
Reset the user credentials.

Definition at line 32 of file entry_handler.cpp.

◆ help()

int args::help ( const char * name)

Print help to stdout, then exit.

Parameters
nameThe name of the program.

Examples

help("sunshine");
int help(const char *name)
Print help to stdout, then exit.

Definition at line 42 of file entry_handler.cpp.

◆ version()

int args::version ( )

Print the version to stdout, then exit.

Examples

int version()
Print the version to stdout, then exit.

Definition at line 47 of file entry_handler.cpp.