From 7244e43695a8597bb14bf97b693536ba80a3dd03 Mon Sep 17 00:00:00 2001 From: Morten Kristensen Date: Tue, 1 Nov 2016 20:55:25 +0100 Subject: 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 --- qtservice/src/qtservice.cpp | 7 +++---- 1 file 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 */ - - - -- cgit v1.2.3