From 75b5510f573390e0725fd424b1799f1fdb3baa1a Mon Sep 17 00:00:00 2001 From: Vishwanatha Subbanna Date: Wed, 30 Nov 2016 14:20:53 +0530 Subject: 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 --- argument.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'argument.cpp') 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 of the LED" - << std::endl; std::cerr << " --path= sysfs path like /sys/class/leds" << std::endl; } -- cgit v1.2.1