Add option for daemon to continue running after timeout

Added new command line option that lets someone disable the
watchdog timer on timer expiration instead of the default
action of it exiting.

Change-Id: I1c3414d4378872860ac083836cda4809fa26237a
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/argument.cpp b/argument.cpp
index 61b1f65..41ea9ae 100644
--- a/argument.cpp
+++ b/argument.cpp
@@ -28,12 +28,13 @@
 const std::string ArgumentParser::trueString = "true"s;
 const std::string ArgumentParser::emptyString = ""s;
 
-const char* ArgumentParser::optionStr = "p:s:t:?h";
+const char* ArgumentParser::optionStr = "p:s:t:c:?h";
 const option ArgumentParser::options[] =
 {
     { "path",     required_argument,  nullptr,   'o' },
     { "service",  required_argument,  nullptr,   's' },
     { "target",   required_argument,  nullptr,   't' },
+    { "continue", no_argument,        nullptr,   'c' },
     { "help",     no_argument,        nullptr,   'h' },
     { 0, 0, 0, 0},
 };
@@ -88,6 +89,8 @@
                                                  "State.Watchdog.Host\n";
     std::cerr << " [--target=<systemd unit>]     Systemd unit to be called on"
                                                  " timeout\n";
+    std::cerr << " [--continue]                  Continue daemon after"
+                                                 " watchdog timeout.\n";
 }
 } // namespace watchdog
 } // namespace phosphor