diff options
author | Morten Kristensen <msk@nullpointer.dk> | 2016-11-01 20:55:25 +0100 |
---|---|---|
committer | Morten Kristensen <msk@nullpointer.dk> | 2016-11-02 15:19:00 +0000 |
commit | 7244e43695a8597bb14bf97b693536ba80a3dd03 (patch) | |
tree | 677ed6d83ba5d23898800db474fd1f439ba88c25 | |
parent | ad9bc4600ce769a8b3ad10910803cd555811b70c (diff) |
QtService: Added missing -p(ause) and -r(esume) to help text
Added missing -p(ause) and -r(esume) to help text.
And updated the short usage line to be: -[i|u|e|t|p|r|c|v|h]
Change-Id: If209ad2d783e04b3a74b4ee92b795aeeb8557d7b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | qtservice/src/qtservice.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qtservice/src/qtservice.cpp b/qtservice/src/qtservice.cpp index 837254b..5eae058 100644 --- a/qtservice/src/qtservice.cpp +++ b/qtservice/src/qtservice.cpp @@ -835,11 +835,13 @@ int QtServiceBase::exec() d_ptr->controller.sendCommand(code); return 0; } else if (a == QLatin1String("-h") || a == QLatin1String("-help")) { - printf("\n%s -[i|u|e|s|v|h]\n" + printf("\n%s -[i|u|e|t|p|r|c|v|h]\n" "\t-i(nstall) [account] [password]\t: Install the service, optionally using given account and password\n" "\t-u(ninstall)\t: Uninstall the service.\n" "\t-e(xec)\t\t: Run as a regular application. Useful for debugging.\n" "\t-t(erminate)\t: Stop the service.\n" + "\t-p(ause)\t: Pause the service.\n" + "\t-r(esume)\t: Resume a paused service.\n" "\t-c(ommand) num\t: Send command code num to the service.\n" "\t-v(ersion)\t: Print version and status information.\n" "\t-h(elp) \t: Show this help\n" @@ -1125,6 +1127,3 @@ void QtServiceBase::processCommand(int /*code*/) \reimp */ - - - |