summaryrefslogtreecommitdiffstats
path: root/argument.cpp
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2016-11-30 14:20:53 +0530
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2016-12-19 12:18:08 +0530
commit75b5510f573390e0725fd424b1799f1fdb3baa1a (patch)
tree58c4643682ace2334fa01a419d3f175b8bb79d85 /argument.cpp
parentbda97eb107fc60544fb8cde0ec1ada1da2d66f73 (diff)
downloadphosphor-led-sysfs-75b5510f573390e0725fd424b1799f1fdb3baa1a.tar.gz
phosphor-led-sysfs-75b5510f573390e0725fd424b1799f1fdb3baa1a.zip
Add overriding methods for the base interface definition
Defines the functions that override the default setter for the led state property. Change-Id: Ic3a8d43cc783003c43f53df8f7e90d7fc4d6715a Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'argument.cpp')
-rw-r--r--argument.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/argument.cpp b/argument.cpp
index 3df84e7..7b70fe0 100644
--- a/argument.cpp
+++ b/argument.cpp
@@ -28,10 +28,9 @@ namespace led
const std::string ArgumentParser::true_string = "true";
const std::string ArgumentParser::empty_string = "";
-const char* ArgumentParser::optionstr = "n:p:?h";
+const char* ArgumentParser::optionstr = "p:?h";
const option ArgumentParser::options[] =
{
- { "name", required_argument, nullptr, 'n' },
{ "path", required_argument, nullptr, 'p' },
{ "help", no_argument, nullptr, 'h' },
{ 0, 0, 0, 0},
@@ -74,8 +73,6 @@ void ArgumentParser::usage(char** argv)
std::cerr << "Usage: " << argv[0] << " [options]" << std::endl;
std::cerr << "Options:" << std::endl;
std::cerr << " --help Print this menu" << std::endl;
- std::cerr << " --name=<name> Name of the LED"
- << std::endl;
std::cerr << " --path=<path> sysfs path like /sys/class/leds"
<< std::endl;
}
OpenPOWER on IntegriCloud