summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/cmd_line_parser.cpp6
-rw-r--r--client/cmd_line_parser.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/client/cmd_line_parser.cpp b/client/cmd_line_parser.cpp
index 1aa5c961..ec00c3e3 100644
--- a/client/cmd_line_parser.cpp
+++ b/client/cmd_line_parser.cpp
@@ -119,7 +119,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)
+ const std::string& arg_name, bool required_arg, char short_name)
{
if (id < OPTION_FIRST_AVAILABLE) {
THROW("invalid id");
@@ -129,7 +129,7 @@ void CmdLineParser::add(int id, const std::string& name, const std::string& help
THROW("invalid arg name");
}
- add_private(id, name, short_name, reqired_arg ? REQUIRED_ARGUMENT : OPTIONAL_ARGUMENT, help,
+ add_private(id, name, short_name, required_arg ? REQUIRED_ARGUMENT : OPTIONAL_ARGUMENT, help,
arg_name);
}
@@ -156,7 +156,7 @@ void CmdLineParser::set_multi(int id, char seperator)
opt->seperator = seperator;
}
-void CmdLineParser::set_reqired(int id)
+void CmdLineParser::set_required(int id)
{
if (_argv) {
THROW("unexpected");
diff --git a/client/cmd_line_parser.h b/client/cmd_line_parser.h
index 6e6c6d50..37b56601 100644
--- a/client/cmd_line_parser.h
+++ b/client/cmd_line_parser.h
@@ -35,9 +35,9 @@ public:
char short_name = 0);
void add(int id, const std::string& name, const std::string& help,
- const std::string& arg_name, bool reqired_arg, char short_name = 0);
+ const std::string& arg_name, bool required_arg, char short_name = 0);
void set_multi(int id, char seperator);
- void set_reqired(int id);
+ void set_required(int id);
void begin(int argc, char** argv);
int get_option(char** val);