summaryrefslogtreecommitdiff
path: root/server/src/macrotool/macrotool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/macrotool/macrotool.cc')
-rw-r--r--server/src/macrotool/macrotool.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/macrotool/macrotool.cc b/server/src/macrotool/macrotool.cc
index b811c29..0445927 100644
--- a/server/src/macrotool/macrotool.cc
+++ b/server/src/macrotool/macrotool.cc
@@ -46,6 +46,7 @@
#include "fieldnames.h"
#include "filehandler.h"
#include "export.h"
+#include "sunlock.h"
static const char version_str[] =
"Pracro server v" VERSION "\n"
@@ -75,6 +76,8 @@ static const char usage_str[] =
" ('fieldnames help' to see list of entities).\n"
" filehandler entity Handle macro files ('filehandler help' to see list of entities).\n"
" export entity Export data from database to comma separated file ('export help' to see list of entities)\n"
+" sunlock sid Sets the status of a session id in the database"
+ " to 'idle'.\n"
;
ConfigurationParser *configparser = NULL;
@@ -161,6 +164,7 @@ int main(int argc, char *argv[])
if(command == "fieldnames") macrotool_fieldnames(params);
if(command == "filehandler") macrotool_filehandler(params);
if(command == "export") macrotool_export(params);
+ if(command == "sunlock") macrotool_sunlock(params);
return 0;
}