mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
This commit is contained in:
@@ -392,6 +392,13 @@ void ServerApplication::defineOptions(OptionSet& options)
|
|||||||
.repeatable(false)
|
.repeatable(false)
|
||||||
.argument("automatic|manual"s)
|
.argument("automatic|manual"s)
|
||||||
.callback(OptionCallback<ServerApplication>(this, &ServerApplication::handleStartup)));
|
.callback(OptionCallback<ServerApplication>(this, &ServerApplication::handleStartup)));
|
||||||
|
|
||||||
|
options.addOption(
|
||||||
|
Option("pidfile"s, ""s, "Write the process ID of the application to given file."s)
|
||||||
|
.required(false)
|
||||||
|
.repeatable(false)
|
||||||
|
.argument("path")
|
||||||
|
.callback(OptionCallback<ServerApplication>(this, &ServerApplication::handlePidFile)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user