[Spice-devel] [PATCH 2/5] client: s/reqired/required in CmdLineParser

Christophe Fergeau cfergeau at redhat.com
Mon Apr 18 04:01:09 PDT 2011


---
 client/cmd_line_parser.cpp |    6 +++---
 client/cmd_line_parser.h   |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/client/cmd_line_parser.cpp b/client/cmd_line_parser.cpp
index 1aa5c96..ec00c3e 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 6e6c6d5..37b5660 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);
-- 
1.7.4.4



More information about the Spice-devel mailing list