mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-04 19:30:55 +00:00
client: s/AVAILIBLE/AVAILABLE in CmdLineParser
It was mispelt in a CmdLineParser enum.
This commit is contained in:
parent
443994ba87
commit
4bcb62f9a1
@ -2183,7 +2183,7 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
|
||||
DisplaySetting display_setting;
|
||||
|
||||
enum {
|
||||
SPICE_OPT_HOST = CmdLineParser::OPTION_FIRST_AVILABLE,
|
||||
SPICE_OPT_HOST = CmdLineParser::OPTION_FIRST_AVAILABLE,
|
||||
SPICE_OPT_PORT,
|
||||
SPICE_OPT_SPORT,
|
||||
SPICE_OPT_PASSWORD,
|
||||
|
||||
@ -112,7 +112,7 @@ void CmdLineParser::add_private(int id, const std::string& name, char short_name
|
||||
|
||||
void CmdLineParser::add(int id, const std::string& name, const std::string& help, char short_name)
|
||||
{
|
||||
if (id < OPTION_FIRST_AVILABLE) {
|
||||
if (id < OPTION_FIRST_AVAILABLE) {
|
||||
THROW("invalid id");
|
||||
}
|
||||
add_private(id, name, short_name, NO_ARGUMENT, help, "");
|
||||
@ -121,7 +121,7 @@ void CmdLineParser::add(int id, const std::string& name, const std::string& help
|
||||
void CmdLineParser::add(int id, const std::string& name, const std::string& help,
|
||||
const std::string& arg_name, bool reqired_arg, char short_name)
|
||||
{
|
||||
if (id < OPTION_FIRST_AVILABLE) {
|
||||
if (id < OPTION_FIRST_AVAILABLE) {
|
||||
THROW("invalid id");
|
||||
}
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ public:
|
||||
OPTION_ERROR = -1,
|
||||
OPTION_DONE = 0,
|
||||
OPTION_HELP = 256,
|
||||
OPTION_FIRST_AVILABLE,
|
||||
OPTION_FIRST_AVAILABLE,
|
||||
};
|
||||
|
||||
CmdLineParser(std::string description, bool allow_positional_args);
|
||||
|
||||
@ -414,7 +414,7 @@ bool ControllerConnection::create_menu(char* resource)
|
||||
bool ControllerConnection::set_multi_val(uint32_t op, char* multi_val)
|
||||
{
|
||||
CmdLineParser parser("", false);
|
||||
int id = CmdLineParser::OPTION_FIRST_AVILABLE;
|
||||
int id = CmdLineParser::OPTION_FIRST_AVAILABLE;
|
||||
char* argv[] = {NULL, (char*)"--set", multi_val};
|
||||
char* val;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user