fanctl: add github link to help command
Since man pages may not be available on the host, a link to the full
fanctl readme is supplied in the help command.
Signed-off-by: Mike Capps <mikepcapps@gmail.com>
Change-Id: I146ac8c952cd846de5e910418ed2590982b01071
diff --git a/control/fanctl.cpp b/control/fanctl.cpp
index 6af6c1e..b3707d3 100644
--- a/control/fanctl.cpp
+++ b/control/fanctl.cpp
@@ -538,6 +538,7 @@
// status method
std::string strHelp("Prints fan target/tach readings, present/functional "
"states, and fan-monitor/BMC/Power service status");
+
auto cmdStatus = commands->add_subcommand("status", strHelp);
cmdStatus->set_help_flag("-h, --help", strHelp);
cmdStatus->require_option(0);
@@ -585,8 +586,11 @@
try
{
- CLI::App app{"Manually control, get fan tachs, view status, and resume"
- " automatic control of all fans within a chassis."};
+ CLI::App app{"Manually control, get fan tachs, view status, and resume "
+ "automatic control of all fans within a chassis. Full "
+ "documentation can be found at the readme:\n"
+ "https://github.com/openbmc/phosphor-fan-presence/tree/"
+ "master/docs/control/fanctl"};
initCLI(app, target, fanList);