summaryrefslogtreecommitdiffstats
path: root/control/argument.cpp
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-24 21:59:42 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2019-04-19 22:07:46 +0000
commita964223bba361d62e14621137b353daaf3dacdc8 (patch)
treec24cdeeed2c0f69bbfdd38da3cfad22fb9fdea00 /control/argument.cpp
parent26a78ab15690be7421bb000bc473cd0bdfd8ad15 (diff)
downloadphosphor-fan-presence-a964223bba361d62e14621137b353daaf3dacdc8.tar.gz
phosphor-fan-presence-a964223bba361d62e14621137b353daaf3dacdc8.zip
Add fan shutdown option to stop rotors after chassis powerdown
Diffstat (limited to 'control/argument.cpp')
-rw-r--r--control/argument.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/control/argument.cpp b/control/argument.cpp
index e014453..e46200f 100644
--- a/control/argument.cpp
+++ b/control/argument.cpp
@@ -1,5 +1,6 @@
/**
* Copyright © 2017 IBM Corporation
+ * Copyright © 2017-2018 Raptor Engineering, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -69,6 +70,7 @@ void ArgumentParser::usage(char** argv)
std::cerr << " --help Print this menu\n";
std::cerr << " --init Sets fans to full speed, delays, exits\n";
std::cerr << " --control Start fan control algorithm\n";
+ std::cerr << " --shutdown Shut down fan control algorithm *and* fans. ONLY use after chassis powerdown!\n";
std::cerr << std::flush;
}
@@ -76,11 +78,12 @@ const option ArgumentParser::options[] =
{
{ "init", no_argument, NULL, 'i' },
{ "control", no_argument, NULL, 'c' },
+ { "shutdown", no_argument, NULL, 's' },
{ "help", no_argument, NULL, 'h' },
{ 0, 0, 0, 0},
};
-const char* ArgumentParser::optionstr = "ich?";
+const char* ArgumentParser::optionstr = "icsh?";
const std::string ArgumentParser::true_string = "true";
const std::string ArgumentParser::empty_string = "";
OpenPOWER on IntegriCloud