summaryrefslogtreecommitdiffstats
path: root/client/cmd_line_parser.cpp
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-14 17:02:16 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-04-18 12:38:44 +0200
commitd590b48a466ca22dca91ee05c9d10a8feff1b31e (patch)
tree830537ec21590780fb49a45e6b77c32679150c7e /client/cmd_line_parser.cpp
parent56a4a05ae77d21978ba12fde08662833287ab5d1 (diff)
downloadspice-d590b48a466ca22dca91ee05c9d10a8feff1b31e.tar.gz
spice-d590b48a466ca22dca91ee05c9d10a8feff1b31e.tar.xz
spice-d590b48a466ca22dca91ee05c9d10a8feff1b31e.zip
client: s/reqired/required in CmdLineParser
Diffstat (limited to 'client/cmd_line_parser.cpp')
-rw-r--r--client/cmd_line_parser.cpp6
1 files changed, 3 insertions, 3 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");