From 4a954b6ac6657644d199d2b7a99413217e345b6f Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Mon, 18 Dec 2017 14:31:05 +0000 Subject: [PATCH] cinera.c: Add -q flag This sets cinera to "oneshot mode" which makes a Project Edition instance quit after syncing from annotation files in project input directory --- cinera/cinera.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/cinera/cinera.c b/cinera/cinera.c index b2e18a6..da62d88 100644 --- a/cinera/cinera.c +++ b/cinera/cinera.c @@ -14,7 +14,7 @@ typedef struct version CINERA_APP_VERSION = { .Major = 0, .Minor = 5, - .Patch = 11 + .Patch = 12 }; #define CINERA_DB_VERSION 2 @@ -69,7 +69,8 @@ enum enum { MODE_BARE, - MODE_INTEGRATE + MODE_INTEGRATE, + MODE_ONESHOT } modes; enum @@ -1694,6 +1695,9 @@ PrintUsage(char *BinaryLocation, config *DefaultConfig) "\n" " -p \n" " Set the project ID, corresponding to the \"project\" field in the HMML files\n" + " -q\n" + " Quit after syncing with annotation files in project input directory\n" + " (Only affects PROJECT edition)\n" " -s