summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-14 17:02:16 +0200
committerAlon Levy <alevy@redhat.com>2011-07-21 15:09:27 +0300
commit2bd98219f37ef0ed711e61c8f4c705f0058d78eb (patch)
treec05a3f6edac576d5f0716eec6af3e372b1887342
parentfdfc940f59057fd9a540ff30b0fc027b3240d30e (diff)
downloadspice-2bd98219f37ef0ed711e61c8f4c705f0058d78eb.tar.gz
spice-2bd98219f37ef0ed711e61c8f4c705f0058d78eb.tar.xz
spice-2bd98219f37ef0ed711e61c8f4c705f0058d78eb.zip
client: s/reqired/required in CmdLineParser
-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 f503c5ca..35e43aa3 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);