diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-14 17:02:16 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-18 12:38:44 +0200 |
commit | d590b48a466ca22dca91ee05c9d10a8feff1b31e (patch) | |
tree | 830537ec21590780fb49a45e6b77c32679150c7e /client/cmd_line_parser.cpp | |
parent | 56a4a05ae77d21978ba12fde08662833287ab5d1 (diff) | |
download | spice-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.cpp | 6 |
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"); |