summaryrefslogtreecommitdiffstats
path: root/cooling-type/argument.cpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-05-24 11:42:25 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-05-24 11:44:52 -0500
commit06bae85443fdb1e5e9540280a7aeac2f36ffaa7b (patch)
treec7a2edc39718cb0af386cd6bceb2dc80731d7680 /cooling-type/argument.cpp
parent07710ef7ea44e406943a87e22ee71f2302081245 (diff)
downloadphosphor-fan-presence-06bae85443fdb1e5e9540280a7aeac2f36ffaa7b.tar.gz
phosphor-fan-presence-06bae85443fdb1e5e9540280a7aeac2f36ffaa7b.zip
Have cooling-type use the common argument.hpp
The cooling-type application should use the common header file for the ArgumentParser class now that one is available. Also fixed where a static ArgumentParser constant was being initialized. Change-Id: I1fb0dfe3bd0c6e0200ad7c718ef2a3def5476f3f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'cooling-type/argument.cpp')
-rw-r--r--cooling-type/argument.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cooling-type/argument.cpp b/cooling-type/argument.cpp
index f0a78c2..cfd8b25 100644
--- a/cooling-type/argument.cpp
+++ b/cooling-type/argument.cpp
@@ -21,9 +21,9 @@
namespace phosphor
{
-namespace cooling
+namespace fan
{
-namespace type
+namespace util
{
ArgumentParser::ArgumentParser(int argc, char** argv)
@@ -99,6 +99,7 @@ const option ArgumentParser::options[] =
const char* ArgumentParser::optionstr = "p:d:e:aw?h";
+const std::string ArgumentParser::true_string = "true";
const std::string ArgumentParser::empty_string = "";
}
OpenPOWER on IntegriCloud